Throw error when profile do not exist
This commit is contained in:
parent
f7b7483a8a
commit
110b806eca
@ -52,6 +52,8 @@ if (existsSync(profilePath)) {
|
||||
writeFileSync(prefsPath, updatedPrefs, "utf-8");
|
||||
console.log("[info] The <profile>/prefs.js has been modified.");
|
||||
}
|
||||
} else {
|
||||
throw new Error("The given Zotero profile does not exist.");
|
||||
}
|
||||
|
||||
const startZotero = `"${zoteroBinPath}" --debugger --purgecaches -profile ${profilePath}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user