[gnome-documents] application: don't spam stdout for cancelled errors



commit c082e1251130356171fc8d7710cb827aa2ba4f9b
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Apr 1 15:11:51 2013 -0400

    application: don't spam stdout for cancelled errors

 src/application.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index dcc6493..4d15c75 100644
--- a/src/application.js
+++ b/src/application.js
@@ -285,7 +285,9 @@ const Application = new Lang.Class({
                 this.emitJS('miners-changed', this.minersRunning);
 
                 if (error) {
-                    log('Error updating the cache: ' + error.toString());
+                    if (!error.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
+                        log('Error updating the cache: ' + error.toString());
+
                     return;
                 }
 


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