[gnome-documents/wip/rishi/onedrive: 8/8] documents: Strip the D-Bus error name from the UI string



commit df7e6d46f56fb50bdef54764f13ba4f6b4ad79e4
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Mar 31 17:30:11 2017 +0200

    documents: Strip the D-Bus error name from the UI string
    
    The full error message would still be logged, but the serialized error
    domain and code from a D-Bus service won't be shown in the UI.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774937

 src/documents.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index fe6d94c..e3b032a 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1461,6 +1461,8 @@ const DocumentManager = new Lang.Class({
     },
 
     _humanizeError: function(error) {
+        error.strip_remote_error();
+
         let message = error.message;
         if (error.domain == GData.ServiceError) {
             switch (error.code) {


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