diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-05-31 01:20:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-31 10:20:34 +1000 |
commit | 3a33510bd4a169aba00393c2b7e88bf7fa0cad06 (patch) | |
tree | 37320e072cb142a90017e9c0709eb88dd77670ef /core/module_specifier.rs | |
parent | 83ce33363347447e25d2d00732dad86b588b89f0 (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!(""), } ), |