summaryrefslogtreecommitdiff
path: root/cli/specifier_handler.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-06 10:36:16 -0400
committerGitHub <noreply@github.com>2021-08-06 10:36:16 -0400
commit466d3df9d1ff43e16e1a2c20b7792de664547b48 (patch)
tree170b2ab1097331d976ccee47671964b2ebdcc974 /cli/specifier_handler.rs
parente9ddc7a41ad7ea02172d88e95c82d007d8d5df63 (diff)
refactor: make `ParsedModule` implement `Sync` (#11581)
Diffstat (limited to 'cli/specifier_handler.rs')
-rw-r--r--cli/specifier_handler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/specifier_handler.rs b/cli/specifier_handler.rs
index ae47e977a..5fd9d6b25 100644
--- a/cli/specifier_handler.rs
+++ b/cli/specifier_handler.rs
@@ -274,7 +274,7 @@ impl SpecifierHandler for FetchHandler {
let message = if let Some(location) = &maybe_location {
format!(
"Cannot resolve module \"{}\" from \"{}\".",
- requested_specifier, location.filename
+ requested_specifier, location.specifier
)
} else {
format!("Cannot resolve module \"{}\".", requested_specifier)
@@ -291,7 +291,7 @@ impl SpecifierHandler for FetchHandler {
// they are confusing to the user to print out the location because
// they cannot actually get to the source code that is quoted, as
// it only exists in the runtime memory of Deno.
- if !location.filename.contains("$deno$") {
+ if !location.specifier.contains("$deno$") {
(
requested_specifier.clone(),
HandlerError::FetchErrorWithLocation(err.to_string(), location)