[gnome-software/wip/ubuntu-xenial] Use updated snapd-glib error codes
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-xenial] Use updated snapd-glib error codes
- Date: Mon, 5 Sep 2016 04:22:54 +0000 (UTC)
commit 3c528adf0d7feed126ffa02015d637e60316a24f
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Sep 5 16:22:41 2016 +1200
Use updated snapd-glib error codes
src/plugins/gs-ubuntuone-dialog.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-ubuntuone-dialog.c b/src/plugins/gs-ubuntuone-dialog.c
index c84a4b7..0a6b5ef 100644
--- a/src/plugins/gs-ubuntuone-dialog.c
+++ b/src/plugins/gs-ubuntuone-dialog.c
@@ -335,15 +335,15 @@ send_login_request (GsUbuntuoneDialog *self)
gtk_stack_set_visible_child_name (GTK_STACK (self->page_stack), "page-2");
update_widgets (self);
} else {
- if (g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_INVALID_AUTH_DATA) ||
- g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_LOGIN_REQUIRED)) {
+ if (g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_AUTH_DATA_INVALID) ||
+ g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_AUTH_DATA_REQUIRED)) {
show_status (self, _("Incorrect email or password"), TRUE);
gtk_widget_grab_focus (self->password_entry);
} else if (g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_TWO_FACTOR_REQUIRED)) {
gtk_stack_set_visible_child_name (GTK_STACK (self->page_stack), "page-1");
gtk_widget_grab_focus (self->passcode_entry);
update_widgets (self);
- } else if (g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_TWO_FACTOR_FAILED)) {
+ } else if (g_error_matches (error, SNAPD_ERROR, SNAPD_ERROR_TWO_FACTOR_INVALID)) {
show_status (self, _("Two-factor authentication failed"), TRUE);
gtk_widget_grab_focus (self->passcode_entry);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]