Test error exit

This commit is contained in:
danbulant 2020-02-21 20:10:30 +01:00
parent 0af382d873
commit 17dc0ac86d

View file

@ -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);
});