Fail rather than hang sync on S3 upload error
This commit is contained in:
parent
bfdc9cf5fc
commit
fbf2764ef8
1 changed files with 48 additions and 46 deletions
|
@ -492,6 +492,7 @@ Zotero.Sync.Storage.ZFS = (function () {
|
|||
|
||||
|
||||
function onUploadComplete(httpRequest, status, response, data) {
|
||||
return Q.try(function () {
|
||||
var request = data.request;
|
||||
var item = data.item;
|
||||
var uploadKey = data.uploadKey;
|
||||
|
@ -540,6 +541,7 @@ Zotero.Sync.Storage.ZFS = (function () {
|
|||
Components.utils.reportError(e.xmlhttp.responseText);
|
||||
throw new Error(Zotero.Sync.Storage.defaultError);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue