[gnome-documents] documents: Use logError to report loading failures
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: Use logError to report loading failures
- Date: Fri, 31 Mar 2017 14:49:03 +0000 (UTC)
commit 8a82b7f35e76241c039f0c1d507f7af339b63f1c
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 e41a3b7..1cb66a7 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1357,6 +1357,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]