Skip to content

Commit

Permalink
Die with status 1 when website generation fails
Browse files Browse the repository at this point in the history
So Travis won't wipe out the website on error. :\
  • Loading branch information
sophiebits committed Apr 2, 2015
1 parent adbdfe6 commit d81cb6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/server/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

0 comments on commit d81cb6e

Please sign in to comment.