[gnome-documents] documents: Add debug messages for failing to use a thumbnail file
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: Add debug messages for failing to use a thumbnail file
- Date: Thu, 16 Jan 2014 21:15:57 +0000 (UTC)
commit cbb1c3311a374158c2ceb2ac117b64c8faf04199
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Dec 24 17:39:43 2013 +0100
documents: Add debug messages for failing to use a thumbnail file
https://bugzilla.gnome.org/show_bug.cgi?id=720533
src/documents.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 5c9934b..5e4d934 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -448,6 +448,7 @@ const DocCommon = new Lang.Class({
this.thumbnailed = true;
this._setOrigPixbuf(pixbuf);
} catch (e) {
+ log('Unable to create pixbuf from ' + thumbFile.get_uri() + ': ' +
e.toString());
this._failedThumbnailing = true;
}
@@ -455,6 +456,7 @@ const DocCommon = new Lang.Class({
stream.close_async(0, null, null);
}));
} catch (e) {
+ log('Unable to read file at ' + thumbFile.get_uri() + ': ' + e.toString());
this._failedThumbnailing = true;
}
}));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]