Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandocanizo/22de900d660ff202ec90ac5c888b63d5 to your computer and use it in GitHub Desktop.
Save fernandocanizo/22de900d660ff202ec90ac5c888b63d5 to your computer and use it in GitHub Desktop.
'use strict';
// Comment `process` usage to see the cryptic message
const process = require('process');
process.on('unhandledRejection', reason => console.error(reason));
const foo = () => {
return new Promise((undefined, reject) => {
reject(new Error('RECHAZÁU!'));
});
};
foo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment