summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2016-06-08 13:51:17 +0200
committerBastien Nocera <hadess@hadess.net>2016-06-09 11:49:57 +0200
commitdf8a093dd55607c26cc15d1ce598eb8ca023f7cb (patch)
tree7ab047a0972d472c2cec52be9b3d4b0a6d715b00
parent8921a8f9bd4a4a3216297d4e80689baf427cbe13 (diff)
downloadgvfs-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.c10
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);