[geary/geary-0.13] Fix compile warning



commit e2dea91616798372019d4d877a33025e0bdbf6fb
Author: Michael Gratton <mike vee net>
Date:   Sat Mar 9 20:15:16 2019 +1100

    Fix compile warning

 src/client/application/geary-controller.vala | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 4ffa109f..57248ff8 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -832,9 +832,20 @@ public class GearyController : Geary.BaseObject {
         }
 
         if (handled) {
-            yield this.application.engine.update_account_service(
-                account, service, context.cancellable
-            );
+            try {
+                yield this.application.engine.update_account_service(
+                    account, service, context.cancellable
+                );
+            } catch (GLib.Error err) {
+                report_problem(
+                    new Geary.ServiceProblemReport(
+                        Geary.ProblemType.GENERIC_ERROR,
+                        account,
+                        service,
+                        err
+                    )
+                );
+            }
         } else {
             context.authentication_attempts = 0;
             context.authentication_failed = true;


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