[gnote/gdrive: 44/45] Handle Glib exceptions



commit 151260e56c49c028e81291c469ed585691ccaf95
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]