mirror of
https://github.com/danbulant/bpm
synced 2026-05-19 04:08:47 +00:00
Test error exit
This commit is contained in:
parent
0af382d873
commit
17dc0ac86d
1 changed files with 4 additions and 1 deletions
|
|
@ -4,4 +4,7 @@ const chalk = require("chalk");
|
|||
console.log("Trying to make request...");
|
||||
got("http://google.com").then((r) => {
|
||||
console.log(chalk.blue("Got request working!"));
|
||||
})
|
||||
|
||||
console.error(chalk.red("Exiting with code 1 to test error cases"));
|
||||
process.exit(1);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue