diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-05-31 01:20:34 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2021-05-31 16:37:36 +0200 |
commit | 8a7e1c616d12feb93ed3fda4a70228924c747b5c (patch) | |
tree | 272be52d9062243f67cc3a50c1bda8ad95bb0c64 /core/module_specifier.rs | |
parent | 925ba8fbbf947c2c95a616b43e3f89e20cd69e93 (diff) |
fix(cli): Don't statically error on dynamic unmapped bare specifiers (#10618)
Fixes #10168
Fixes #10615
Fixes #10616
Diffstat (limited to 'core/module_specifier.rs')
-rw-r--r-- | core/module_specifier.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/module_specifier.rs b/core/module_specifier.rs index dc6b4d6bf..4de875073 100644 --- a/core/module_specifier.rs +++ b/core/module_specifier.rs @@ -39,10 +39,10 @@ impl fmt::Display for ModuleResolutionError { InvalidPath(ref path) => write!(f, "invalid module path: {:?}", path), ImportPrefixMissing(ref specifier, ref maybe_referrer) => write!( f, - "relative import path \"{}\" not prefixed with / or ./ or ../{}", + "Relative import path \"{}\" not prefixed with / or ./ or ../{}", specifier, match maybe_referrer { - Some(referrer) => format!(" Imported from \"{}\"", referrer), + Some(referrer) => format!(" from \"{}\"", referrer), None => format!(""), } ), |