mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
fx128: Handle changed error message for IOUtils.makeDir on broken symlink
This commit is contained in:
parent
24bf583b78
commit
187b1649c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue