diff --git a/chrome/content/zotero/osfile.mjs b/chrome/content/zotero/osfile.mjs index 279594ac67..afca9247ad 100644 --- a/chrome/content/zotero/osfile.mjs +++ b/chrome/content/zotero/osfile.mjs @@ -105,7 +105,7 @@ export let OS = { catch (e) { // Broken symlink if (e.name == 'InvalidAccessError') { - if (/Could not create directory because the target file(.+) exists and is not a directory/.test(e.message)) { + if (/Could not create directory (.+): file exists and is not a directory/.test(e.message)) { let osFileError = new OS.File.Error(e.message); osFileError.becauseExists = true; throw osFileError;