www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 892708d07135e5f2204ee585bfbff19822669343
parent bbdfebf8f6410b90123001b40e6451140aad6233
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat,  6 Feb 2016 15:20:17 -0500

Include path in debug output when nsIFile is passed to getContentsAsync()

Diffstat:
Mchrome/content/zotero/xpcom/file.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -204,7 +204,8 @@ Zotero.File = new function(){ * @return {Promise} A promise that is resolved with the contents of the file */ this.getContentsAsync = function (source, charset, maxLength) { - Zotero.debug("Getting contents of " + source); + Zotero.debug("Getting contents of " + + (source instanceof Components.interfaces.nsIFile ? source.path : source)); // If path is given, convert to file:// URL if (typeof source == 'string' && !source.match(/^file:/)) {