[sushi] mainWindow: log an error when failing to call prepare()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] mainWindow: log an error when failing to call prepare()
- Date: Sun, 16 Feb 2014 01:42:18 +0000 (UTC)
commit 72da47462f94d7918f831bf23396357ef65b329e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Feb 15 17:40:07 2014 -0800
mainWindow: log an error when failing to call prepare()
Instead of failing silently.
src/js/ui/mainWindow.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 2804add..1358b9e 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -316,6 +316,7 @@ MainWindow.prototype = {
this._pendingRenderer.prepare(file, this, Lang.bind(this,
this._onRendererPrepared));
} catch(e) {
/* FIXME: report the error */
+ logError(e, 'Error calling prepare() on viewer');
}}));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]