From 466d3df9d1ff43e16e1a2c20b7792de664547b48 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Fri, 6 Aug 2021 10:36:16 -0400 Subject: refactor: make `ParsedModule` implement `Sync` (#11581) --- cli/specifier_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/specifier_handler.rs') 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) -- cgit v1.2.3