Skip to content

Instantly share code, notes, and snippets.

@colwem
Created March 30, 2016 04:22
Show Gist options
  • Save colwem/e7b0415c521e6aeacf0c3db77628f413 to your computer and use it in GitHub Desktop.
Save colwem/e7b0415c521e6aeacf0c3db77628f413 to your computer and use it in GitHub Desktop.
'use strict';
let Promise = require('bluebird');
Promise.try(() => {
test();
})
function test() {
throw new Error('message');
}
Unhandled rejection Error: message
at test (/Users/colwem/workshop/RxJSKoans/test.js:10:9)
at /Users/colwem/workshop/RxJSKoans/test.js:6:3
at tryCatcher (/Users/colwem/workshop/RxJSKoans/node_modules/bluebird/js/release/util.js:16:23)
at Function.Promise.attempt.Promise.try (/Users/colwem/workshop/RxJSKoans/node_modules/bluebird/js/release/method.js:39:29)
at Object.<anonymous> (/Users/colwem/workshop/RxJSKoans/test.js:5:12)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:142:18)
at node.js:939:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment