set process.exitCode = 1 on error; don't want to rethrow
This commit is contained in:
parent
1b319cacf7
commit
704c4b01e1
3 changed files with 4 additions and 1 deletions
1
gog.js
1
gog.js
|
|
@ -130,6 +130,7 @@ try {
|
|||
}
|
||||
} catch (error) {
|
||||
console.error(error); // .toString()?
|
||||
process.exitCode = 1;
|
||||
if (error.message && !error.message.includes('Target closed') && !error.message.includes('Browser closed')) // e.g. when killed by Ctrl-C
|
||||
notify(`gog failed: ${error.message.split('\n')[0]}`);
|
||||
} finally {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue