Skip to content

Commit

Permalink
metro-bundler: AmbiguousModuleResolutionError: provide default message
Browse files Browse the repository at this point in the history
Reviewed By: davidaurelio

Differential Revision: D5986044

fbshipit-source-id: f61d351f91fed3638177bd3c10702f1cb0742a21
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed Oct 9, 2017
1 parent 6c60f61 commit 51d4754
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ class AmbiguousModuleResolutionError extends Error {
fromModulePath: string,
hasteError: DuplicateHasteCandidatesError,
) {
super();
super(
`Ambiguous module resolution from \`${fromModulePath}\`: ` +
hasteError.message,
);
this.fromModulePath = fromModulePath;
this.hasteError = hasteError;
}
Expand Down

0 comments on commit 51d4754

Please sign in to comment.