1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

better error handling

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-05-12 10:49:18 -04:00
parent 17014cb1f5
commit ef5d57283c

View File

@ -109,7 +109,12 @@ if (options.preid) {
npmVersionArgs.push("--git-tag-version false");
execSync(npmVersionArgs.join(" "));
try {
execSync(npmVersionArgs.join(" "));
} catch (error) {
console.error(error);
process.exit(1);
}
const newVersion = new SemVer(readJsonSync("./package.json").version);