From add2c629cc10dfa4e8a62bd330ce83b3346430b1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 21 Sep 2009 22:20:30 +0000 Subject: [PATCH] Clarify Windows path-too-long error message --- chrome/content/zotero/xpcom/storage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 65bab5a87..229f95aeb 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -778,7 +778,10 @@ Zotero.Sync.Storage = new function () { // Require 40 available characters in path -- this is arbitrary, // but otherwise filenames are going to end up being cut off if (newLength < 40) { - throw ("Storage directory path is too long in " + funcName); + var msg = "Due to a Windows path length limitation, your Zotero data directory " + + "is too deep in the filesystem for syncing to work reliably. " + + "Please relocate your Zotero data to a higher directory."; + throw (msg); } // Shorten file if it's too long -- we don't relink it, but this should