[gnome-online-accounts] provider: Try to cover up faulty EnsureCredentials implementations



commit c37d54b68b87b28d720c98e4995ee68480d2d2db
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Jul 4 17:45:09 2017 +0200

    provider: Try to cover up faulty EnsureCredentials implementations
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784512

 src/goabackend/goaprovider.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/goabackend/goaprovider.c b/src/goabackend/goaprovider.c
index 1c0834d..c59122a 100644
--- a/src/goabackend/goaprovider.c
+++ b/src/goabackend/goaprovider.c
@@ -878,6 +878,7 @@ goa_provider_ensure_credentials_sync (GoaProvider     *self,
 
       provider_type = goa_provider_get_provider_type (self);
       g_critical ("GoaProvider (%s) failed to set error correctly", provider_type);
+      g_set_error_literal (error, GOA_ERROR, GOA_ERROR_NOT_AUTHORIZED, _("Unknown error"));
     }
 
   g_clear_object (&account);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]