[gnome-software/wip/temp/ubuntu-xenial-rebased: 261/326] Set error on failure
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 261/326] Set error on failure
- Date: Fri, 29 Apr 2016 10:09:17 +0000 (UTC)
commit cb46d1caaf727056a7276a1ff328dede1863cd3f
Author: William Hua <william hua canonical com>
Date: Sun Apr 17 21:10:22 2016 -0400
Set error on failure
src/plugins/gs-ubuntu-snapd.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-ubuntu-snapd.c b/src/plugins/gs-ubuntu-snapd.c
index 71d2368..f097a66 100644
--- a/src/plugins/gs-ubuntu-snapd.c
+++ b/src/plugins/gs-ubuntu-snapd.c
@@ -172,8 +172,11 @@ send_snapd_request (gboolean authenticate,
macaroon = gs_ubuntuone_get_macaroon (FALSE, TRUE, NULL);
- if (macaroon == NULL)
+ if (macaroon == NULL) {
+ g_set_error_literal (error, GS_PLUGIN_ERROR, GS_PLUGIN_ERROR_FAILED,
+ "failed to authenticate");
return FALSE;
+ }
return send_snapd_request (TRUE,
FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]