metro/react-packager
Amjad Masad 0e8f6e4ed3 Remove server error listener so that it throws
Summary: @​public
We swallow errors like it's nobody's business :(
Having an error handler that `reject`s after the promise has been resolved is a no-op. In node, if there is no `error` event handler then the error would throw.

So after we start listening and we want to resolve the promise, we remove the error listener so that we make sure errors actually throw.

Finally, I made the `uncaughtError` handler log `error.stack` so we can get an idea of what's going on.

Reviewed By: @martinbigio

Differential Revision: D2468472
2015-09-22 15:48:29 -07:00
..
__mocks__ [react-packager] Expose a socket interface 2015-08-25 09:37:08 -08:00
src Remove server error listener so that it throws 2015-09-22 15:48:29 -07:00
.babelrc [Babel] Upgrade babel and regenerator to the latest version 2015-08-10 20:37:39 -08:00
.npmignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
index.js [react-packager] Cleanup socket interface code 2015-08-25 17:36:08 -08:00