Clarify Windows path-too-long error message

This commit is contained in:
Dan Stillman 2009-09-21 22:20:30 +00:00
parent 1fc74a3f93
commit add2c629cc

View file

@ -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