James Ide 2b80cdf1bb Fix HMR syntax error messages (message instead of description)
Summary:
The code to display HMR errors on the client was reading the `description` field from Metro payloads. Metro does not include `description` in the body of its error payloads -- only in its `body.errors[]` items. This commit changes RN's HMR code to show `body.message` (set consistently with https://github.com/facebook/metro/pull/124) instead of the non-existent `body.description`.

Open a test RN app, enable HMR, and then introduce a syntax error in an app source file. See that the redbox provides information about the syntax error instead of just saying "TransformError undefined".

- https://github.com/facebook/metro/pull/124

[GENERAL][ENHANCEMENT][HMR] - Fix display of syntax error messages when HMR is enabled
Closes https://github.com/facebook/react-native/pull/17619

Differential Revision: D6726516

Pulled By: mjesun

fbshipit-source-id: b1d1008d6f1aa8f88ff8a2aa1374724a305c773b
2018-01-16 03:42:44 -08:00
..
2017-12-13 16:19:21 -08:00
2017-12-19 19:46:06 -08:00
2017-12-06 17:34:26 -08:00
2018-01-08 17:04:29 -08:00
2018-01-08 17:04:29 -08:00
2016-11-02 12:29:15 -07:00
2017-09-08 14:46:14 -07:00
2018-01-12 22:18:45 -08:00
2017-09-21 15:01:52 -07:00
2018-01-08 17:04:29 -08:00
2017-11-10 21:15:48 -08:00
2018-01-12 22:18:45 -08:00
2017-10-09 17:46:44 -07:00
2017-09-06 03:33:43 -07:00