[gnome-software] snap: Fix authentication prompt not showing
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Fix authentication prompt not showing
- Date: Mon, 17 Jul 2017 01:22:35 +0000 (UTC)
commit f9ffaa6b937ca5fba95a237b6aed71f221650c77
Author: Robert Ancell <robert ancell canonical com>
Date: Mon Jul 17 13:22:03 2017 +1200
snap: Fix authentication prompt not showing
plugins/snap/gs-plugin-snap.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 50e4599..74f5650 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -78,10 +78,9 @@ snapd_error_convert (GError **perror)
if (error->domain == SNAPD_ERROR) {
switch (error->code) {
case SNAPD_ERROR_AUTH_DATA_REQUIRED:
- g_set_error_literal (perror,
- GS_PLUGIN_ERROR,
- GS_PLUGIN_ERROR_AUTH_REQUIRED,
- "Requires authentication with @snapd");
+ error->code = GS_PLUGIN_ERROR_AUTH_REQUIRED;
+ g_free (error->message);
+ error->message = g_strdup ("Requires authentication with @snapd");
break;
case SNAPD_ERROR_TWO_FACTOR_REQUIRED:
error->code = GS_PLUGIN_ERROR_PIN_REQUIRED;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]