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; }