mirror of
https://github.com/denoland/deno
synced 2024-08-25 02:57:22 +00:00
Fix multiple error messages for a missing file (#2587)
This commit is contained in:
parent
fb6d57a281
commit
d7d3e9f9de
|
@ -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(),
|
||||
|
|
1
tests/error_013_missing_script.out
Normal file
1
tests/error_013_missing_script.out
Normal file
|
@ -0,0 +1 @@
|
|||
Cannot resolve module "[WILDCARD]missing_file_name"
|
4
tests/error_013_missing_script.test
Normal file
4
tests/error_013_missing_script.test
Normal file
|
@ -0,0 +1,4 @@
|
|||
args: run --reload missing_file_name
|
||||
check_stderr: true
|
||||
exit_code: 1
|
||||
output: tests/error_013_missing_script.out
|
Loading…
Reference in a new issue