Permalink
Browse files

Add error output for requirejs optimization failure.

  • Loading branch information...
1 parent 3e4eaee commit 625cb1b775cd34df99392463bb05b86aa15e43ed @toolness committed Jan 15, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 build-require.js
View
@@ -13,7 +13,10 @@ var requirejs = require('requirejs'),
out = resolve(baseUrl, 'friendlycode-built.js');
function optimize(done) {
- requirejs.optimize(generateConfig(), done);
+ requirejs.optimize(generateConfig(), done, function(err) {
+ process.stderr.write(err.toString());
+ process.exit(1);
+ });
}
function generateConfig() {

0 comments on commit 625cb1b

Please sign in to comment.