[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 261/331] Set error on failure
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 261/331] Set error on failure
- Date: Wed, 4 May 2016 14:20:28 +0000 (UTC)
commit e12e5fa8d8a7d9bc851b3b6a9efbbd9d2d149b92
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]