[gnote] Handle Glib exceptions



commit 0358f687f41519f07e9fe245cd4a8d4af2e53a81
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Jan 6 18:08:28 2019 +0200

    Handle Glib exceptions

 src/synchronization/filesystemsyncserver.cpp | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/synchronization/filesystemsyncserver.cpp b/src/synchronization/filesystemsyncserver.cpp
index e9913227..b6175afc 100644
--- a/src/synchronization/filesystemsyncserver.cpp
+++ b/src/synchronization/filesystemsyncserver.cpp
@@ -379,6 +379,10 @@ bool FileSystemSyncServer::commit_sync_transaction()
       ERR_OUT(_("Exception during server cleanup while committing. Server integrity is OK, but "
                 "there may be some excess files floating around.  Here's the error: %s\n"), e.what());
     }
+    catch(Glib::Exception & e) {
+      ERR_OUT(_("Exception during server cleanup while committing. Server integrity is OK, but "
+                "there may be some excess files floating around.  Here's the error: %s\n"), 
e.what().c_str());
+    }
     // * * * End Cleanup Code * * *
   }
 


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