vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

We need to make sure we catch all promises rejections, and also refactor the code to only show errors at the top most level

Open digeff opened this issue 10 years ago • 1 comments

This issue is related to this: https://github.com/Microsoft/vscode-react-native/issues/58

The other issue that we need to fix is that .done() in the method Packager.start() line 56 doesn't has a failure handler, so it'll throw an exception if that logic fails. In the case I'm testing the method monkeyPatchOpnForRNPackager fails because version 0.14 of react native doesn't has the opn library where the code expect it. We should make sure we handle that case graciously, and make sure all the .done()s we have in the whole project have a proper way of handle rejected promises

We need to make sure we catch all the rejected promises to avoid getting to this state: image

digeff avatar Feb 22 '16 16:02 digeff

Fixed in https://github.com/Microsoft/vscode-react-native/pull/79

digeff avatar Feb 26 '16 23:02 digeff