[gvfs] afc: Add specific errors for trust dialogue errors
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afc: Add specific errors for trust dialogue errors
- Date: Thu, 9 Jun 2016 10:00:23 +0000 (UTC)
commit df8a093dd55607c26cc15d1ce598eb8ca023f7cb
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jun 8 13:51:17 2016 +0200
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
daemon/gvfsbackendafc.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendafc.c b/daemon/gvfsbackendafc.c
index dde5bd9..fcb78dc 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]