mirror of https://github.com/status-im/metro.git
metro-bundler: AmbiguousModuleResolutionError: provide default message
Reviewed By: davidaurelio Differential Revision: D5986044 fbshipit-source-id: f61d351f91fed3638177bd3c10702f1cb0742a21
This commit is contained in:
parent
6c60f61cbd
commit
51d4754efc
|
@ -386,7 +386,10 @@ class AmbiguousModuleResolutionError extends Error {
|
||||||
fromModulePath: string,
|
fromModulePath: string,
|
||||||
hasteError: DuplicateHasteCandidatesError,
|
hasteError: DuplicateHasteCandidatesError,
|
||||||
) {
|
) {
|
||||||
super();
|
super(
|
||||||
|
`Ambiguous module resolution from \`${fromModulePath}\`: ` +
|
||||||
|
hasteError.message,
|
||||||
|
);
|
||||||
this.fromModulePath = fromModulePath;
|
this.fromModulePath = fromModulePath;
|
||||||
this.hasteError = hasteError;
|
this.hasteError = hasteError;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue