syndicatec: exit status 1 on error

This commit is contained in:
Tony Garnock-Jones 2016-05-17 13:26:50 -04:00
parent 43f6bd39ea
commit e27e028d8c
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ function compileAndPrint(inputSource) {
var translatedSource = compiler.compileSyndicateSource(inputSource);
if (translatedSource) {
console.log(translatedSource);
} else {
process.exit(1);
}
}