From e5a8f94a9fc518d634deb817ee237008fd6e6fd4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 14 Dec 2009 10:07:55 +0000 Subject: [PATCH] Nicer message on S3 file upload failure --- chrome/content/zotero/xpcom/storage/zfs.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js index 169ba9939..1166e7710 100644 --- a/chrome/content/zotero/xpcom/storage/zfs.js +++ b/chrome/content/zotero/xpcom/storage/zfs.js @@ -652,6 +652,10 @@ Zotero.Sync.Storage.Session.ZFS.prototype._onUploadComplete = function (httpRequ case 201: break; + case 500: + this.onError("File upload failed. Please try again."); + return; + default: this.onError("Unexpected file upload status " + status + " in Zotero.Sync.Storage._onUploadComplete()");