react-native/packager/react-packager/src
David Aurelio b39fc05dbb Print nicer error message if an asset directory is not found in any of the roots
Summary:
When an asset is included in a module, and the directory for that asset can't be found in any of the roots, it is hard to debug that, because the error message contains neither the name of the requested file, the sub directory it is located in, nor the roots that have been searched for it. It becomes more difficult, because that exception is created asynchronously. It contains the calling promise code.

This diff makes the error message more useful by including the name of the file, the sub directory, and the roots.

Reviewed By: bestander

Differential Revision: D3456738

fbshipit-source-id: 60b81f04626ad386f7120247c5f5361c81c52968
2016-06-20 10:13:22 -07:00
..
Activity Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
AssetServer Print nicer error message if an asset directory is not found in any of the roots 2016-06-20 10:13:22 -07:00
Bundler make module IDs deterministic when bundling 2016-06-17 12:58:49 -07:00
Cache/__mocks__ Move Cache into DependencyGraph 2015-12-18 16:17:42 -08:00
JSTransformer inline `Platform.select` 2016-06-05 05:58:20 -07:00
Resolver Cleanup packager dead debug endpoint 2016-06-16 14:28:29 -07:00
Server Cleanup packager dead debug endpoint 2016-06-16 14:28:29 -07:00
__mocks__ Install node-haste2 and remove DependencyResolver 2016-02-18 18:03:34 -08:00
lib Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00