From 0b43e7defe196d0be1e7f8d74e2073fca2a90bd4 Mon Sep 17 00:00:00 2001 From: Jared Tyler Date: Fri, 10 May 2019 15:10:54 -0400 Subject: [PATCH] Exit with error code when errors are caught. --- lib/vitreum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vitreum b/lib/vitreum index 53e1b6d4..3270ea7c 100644 --- a/lib/vitreum +++ b/lib/vitreum @@ -26,7 +26,7 @@ cli.command('* [targets...]', 'Build your project', (yargs)=>{ // console.log('---------------------'); console.log(err) console.log('THERE ARE ERRORS'); - process.exit(0); + process.exit(1); }) }); @@ -76,4 +76,4 @@ cli.command('jsx ', 'Create a jsx component', (yargs)=>{ }) }, (args)=>require('./templates/jsx.js')(args)); -cli.help('help').alias('help', 'h').argv; \ No newline at end of file +cli.help('help').alias('help', 'h').argv;