[gnome-online-accounts] owncloud: Fix GError handing in ensure_credentials_sync
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] owncloud: Fix GError handing in ensure_credentials_sync
- Date: Mon, 5 Nov 2012 11:57:01 +0000 (UTC)
commit e4341cecb6b98494a49edbf63139201755d1d333
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Nov 5 12:56:28 2012 +0100
owncloud: Fix GError handing in ensure_credentials_sync
src/goabackend/goaowncloudprovider.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index 2d74978..1935182 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -340,9 +340,10 @@ ensure_credentials_sync (GoaProvider *provider,
{
if (error != NULL)
{
- g_prefix_error (error, _("Did not find password with username `%s' in credentials"), username);
- (*error)->domain = GOA_ERROR;
- (*error)->code = GOA_ERROR_NOT_AUTHORIZED;
+ *error = g_error_new (GOA_ERROR,
+ GOA_ERROR_NOT_AUTHORIZED,
+ _("Did not find password with username `%s' in credentials"),
+ username);
}
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]