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



commit 83191901effdf7305800eed79991ae32f621cad0
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 file changed, 3 insertions(+), 1 deletion(-)
---
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]