From c59c8cbffe22d0945a52b2474c1acf8dc5e1fe06 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 23 Sep 2024 11:46:34 +0100 Subject: [PATCH] Use more reliable test for IOUtils.exists() error Amendment to e35c220 --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 25d173dd77..ffa3342f6d 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -5853,7 +5853,7 @@ var ZoteroPane = new function() } catch (e) { // IOUtils.exists() throws if the path is invalid - suppress that - if (e.name === 'NS_ERROR_FILE_UNRECOGNIZED_PATH') { + if (e.message.includes('Could not parse path')) { Zotero.debug('Invalid path: ' + correctedPath); continue; }