[gnote] Show number of failed downloads in error message



commit 1aec4d9e02fdec3c1fdb99df1ac8eb2b26e2045d
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Fri May 1 18:48:29 2020 +0300

    Show number of failed downloads in error message

 src/synchronization/filesystemsyncserver.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/synchronization/filesystemsyncserver.cpp b/src/synchronization/filesystemsyncserver.cpp
index f1466f91..9d973348 100644
--- a/src/synchronization/filesystemsyncserver.cpp
+++ b/src/synchronization/filesystemsyncserver.cpp
@@ -224,7 +224,7 @@ std::map<Glib::ustring, NoteUpdate> FileSystemSyncServer::get_note_updates_since
   }
 
   if(failures > 0) {
-    throw new sharp::Exception(_("Failed to download note updates"));
+    throw GnoteSyncException(Glib::ustring::compose(ngettext("Failed to download %1 note update", "Failed to 
download %1 note updates", failures), failures));
   }
   DBG_OUT("get_note_updates_since (%d) returning: %d", revision, int(noteUpdates.size()));
   return noteUpdates;


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