Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
add unhandled promise rejection handler
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 20, 2015
1 parent d0a7843 commit b4222c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ var Trace = require('./trace');

var getCanonicalName = require('./utils').getCanonicalName;

require('rsvp').on('error', function(reason) {
throw new Error('Unhandled promise rejection.\n' + reason && reason.stack || reason || '' + '\n');
});

function processOpts(opts_, outFile) {
var opts = {
config: {},
Expand Down

0 comments on commit b4222c4

Please sign in to comment.