Debugging for failed file downloads

This commit is contained in:
Dan Stillman 2013-09-09 16:47:15 -04:00
parent 6c0be3426b
commit f510bd9d64

View file

@ -811,6 +811,12 @@ Zotero.Sync.Storage.ZFS = (function () {
+ " in Zotero.Sync.Storage.ZFS.downloadFile()";
Zotero.debug(msg, 1);
Components.utils.reportError(msg);
try {
Zotero.debug(Zotero.File.getContents(destFile, null, 4096), 1);
}
catch (e) {
Zotero.debug(e, 1);
}
deferred.reject(Zotero.Sync.Storage.defaultError);
return;
}