diff --git a/scripts/start.mjs b/scripts/start.mjs index fcf7e6d..1e51521 100644 --- a/scripts/start.mjs +++ b/scripts/start.mjs @@ -52,6 +52,8 @@ if (existsSync(profilePath)) { writeFileSync(prefsPath, updatedPrefs, "utf-8"); console.log("[info] The /prefs.js has been modified."); } +} else { + throw new Error("The given Zotero profile does not exist."); } const startZotero = `"${zoteroBinPath}" --debugger --purgecaches -profile ${profilePath}`;