[geary] Fix compile warning
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix compile warning
- Date: Sat, 9 Mar 2019 09:16:29 +0000 (UTC)
commit d11a5088d3e73ef154c4bb82ea42ce7aa2e5cca4
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 0272d388..6b6772df 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -827,9 +827,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]