diff --git a/packages/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js b/packages/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js index 1cb81a5a..f41fe2a7 100644 --- a/packages/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js +++ b/packages/metro-bundler/src/node-haste/DependencyGraph/ResolutionRequest.js @@ -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; }