diff --git a/cli/state.rs b/cli/state.rs index d49cfd6eb2854..fd209a0f23daa 100644 --- a/cli/state.rs +++ b/cli/state.rs @@ -181,10 +181,7 @@ impl Loader for ThreadSafeState { self.metrics.resolve_count.fetch_add(1, Ordering::SeqCst); Box::new( fetch_module_meta_data_and_maybe_compile_async(self, module_specifier) - .map_err(|err| { - eprintln!("{}", err); - err - }).map(|module_meta_data| deno::SourceCodeInfo { + .map(|module_meta_data| deno::SourceCodeInfo { // Real module name, might be different from initial URL // due to redirections. code: module_meta_data.js_source(), diff --git a/tests/error_013_missing_script.out b/tests/error_013_missing_script.out new file mode 100644 index 0000000000000..9836c361f335c --- /dev/null +++ b/tests/error_013_missing_script.out @@ -0,0 +1 @@ +Cannot resolve module "[WILDCARD]missing_file_name" diff --git a/tests/error_013_missing_script.test b/tests/error_013_missing_script.test new file mode 100644 index 0000000000000..76c77da8d24c7 --- /dev/null +++ b/tests/error_013_missing_script.test @@ -0,0 +1,4 @@ +args: run --reload missing_file_name +check_stderr: true +exit_code: 1 +output: tests/error_013_missing_script.out