Throw (rather than log) ecrypt/filename length limit error on Linux

This commit is contained in:
Dan Stillman 2009-12-14 11:32:50 +00:00
parent e5a8f94a9f
commit 1ff0105daf

View File

@ -806,10 +806,9 @@ Zotero.Sync.Storage = new function () {
// ecrypt (on Ubuntu, at least) can result in a lower limit --
// not much we can do about this, but log a warning
else if (e.name == "NS_ERROR_FAILURE" && Zotero.isLinux && destFile.leafName.length > 130) {
var msg = "Error creating file '" + destFile.leafName + "' "
var e = "Error creating file '" + destFile.leafName + "' "
+ "(Are you using filesystem encryption such as ecrypt "
+ "that results in a filename length limit below 255 bytes?)";
Components.utils.reportError(msg);
}
if (windowsLength || nameLength) {