From 187b1649c16650f38bb90f29971dacf4ff41428b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 10 Jun 2024 05:50:06 -0400 Subject: [PATCH] fx128: Handle changed error message for IOUtils.makeDir on broken symlink --- chrome/content/zotero/osfile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;