[gnome-documents/wip/rishi/onedrive-lo: 7/10] documents: Use logError to report loading failures
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/wip/rishi/onedrive-lo: 7/10] documents: Use logError to report loading failures
- Date: Thu, 30 Mar 2017 16:56:18 +0000 (UTC)
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.
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 d4c55d1..7ad4412 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1380,6 +1380,8 @@ const DocumentManager = new Lang.Class({
return;
}
+ 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]