diff options
author | Bastien Nocera <hadess@hadess.net> | 2016-06-08 13:51:17 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2016-06-09 11:49:57 +0200 |
commit | df8a093dd55607c26cc15d1ce598eb8ca023f7cb (patch) | |
tree | 7ab047a0972d472c2cec52be9b3d4b0a6d715b00 | |
parent | 8921a8f9bd4a4a3216297d4e80689baf427cbe13 (diff) | |
download | gvfs-df8a093dd55607c26cc15d1ce598eb8ca023f7cb.tar.gz |
afc: Add specific errors for trust dialogue errors
Add specific errors for when the user refuses trust on the device, or
repeatedly tries to connect to it but the device is locked, or the
dialogue still showing on the device.
https://bugzilla.gnome.org/show_bug.cgi?id=763605
-rw-r--r-- | daemon/gvfsbackendafc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c index dde5bd93..fcb78dcd 100644 --- a/daemon/gvfsbackendafc.c +++ b/daemon/gvfsbackendafc.c @@ -280,12 +280,20 @@ g_vfs_backend_lockdownd_check (lockdownd_error_t cond, GVfsJob *job) break; case LOCKDOWN_E_PASSWORD_PROTECTED: g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED, - _("Permission denied")); + _("The device is password protected")); break; case LOCKDOWN_E_SSL_ERROR: g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED, _("Unable to connect")); break; + case LOCKDOWN_E_USER_DENIED_PAIRING: + g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED, + _("User refused to trust this computer")); + break; + case LOCKDOWN_E_PAIRING_DIALOG_RESPONSE_PENDING: + g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED, + _("The user has not trusted this computer")); + break; default: g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED, _("Unhandled Lockdown error (%d)"), cond); |