Cleaner debug message when getting contents from input stream
This commit is contained in:
parent
7010742527
commit
b1eb2b6de5
1 changed files with 3 additions and 1 deletions
|
@ -205,7 +205,9 @@ Zotero.File = new function(){
|
|||
*/
|
||||
this.getContentsAsync = function (source, charset, maxLength) {
|
||||
Zotero.debug("Getting contents of "
|
||||
+ (source instanceof Components.interfaces.nsIFile ? source.path : source));
|
||||
+ (source instanceof Components.interfaces.nsIFile
|
||||
? source.path
|
||||
: (source instanceof Components.interfaces.nsIInputStream ? "input stream" : source)));
|
||||
|
||||
// If path is given, convert to file:// URL
|
||||
if (typeof source == 'string' && !source.match(/^file:/)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue