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:
parent
17014cb1f5
commit
ef5d57283c
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user