From 338096e1a37d42111fb17a080aa57bb942cad4ab Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 1 Sep 2010 05:13:28 +0000 Subject: [PATCH] Display more helpful message for "Hash not found in HEAD response" error --- chrome/content/zotero/xpcom/storage/zfs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js index bc656e699..8dd558b3f 100644 --- a/chrome/content/zotero/xpcom/storage/zfs.js +++ b/chrome/content/zotero/xpcom/storage/zfs.js @@ -142,7 +142,11 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getStorageFileInfo = function (item, catch (e) { Zotero.debug("Response headers unavailable"); } - self.onError(); + // TODO: localize? + var msg = "A file sync error occurred. Please restart Firefox and/or your computer and try syncing again.\n\n" + + "If the error persists, there may be a problem with either your computer or your network—security software, proxy server, VPN, etc. " + + "Try disabling any security/firewall software you're using or, if this is a laptop, try from a different network."; + self.onError(msg); return; } info.filename = req.getResponseHeader('X-Zotero-Filename');