Die with status 1 when website generation fails

So Travis won't wipe out the website on error. :\
This commit is contained in:
Ben Alpert 2015-04-01 18:31:18 -07:00
parent adbdfe65e1
commit d81cb6e162
1 changed files with 3 additions and 0 deletions

View File

@ -59,5 +59,8 @@ glob('src/**/*.*', function(er, files) {
console.log('It is live at: http://facebook.github.io/react-native/');
}).finally(function() {
server.close();
}).catch(function(e) {
console.error(e);
process.exit(1);
});
});