[gnome-documents/wip/rishi/onedrive-lo: 7/10] documents: Use logError to report loading failures

commit 09b1b058a4ebc585e05efdde17c5a6832278fe85
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 30 17:32:31 2017 +0200

    documents: Use logError to report loading failures
    Even though a brief summary of the error is presented via the UI, it is
    still useful to log the full backtrace. Loading a document can involve
    multiple I/O operations that are prone to failure, so having some more
    context is helpful for debugging.

 src/documents.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/documents.js b/src/documents.js
index d4c55d1..7ad4412 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1380,6 +1380,8 @@ const DocumentManager = new Lang.Class({
+        logError(error, 'Unable to load document');
         // Translators: %s is the title of a document
         let message = _("Oops! Unable to load ā€œ%sā€").format(doc.name);
         let exception = this._humanizeError(error);

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