better error message for missing module (#3402)

This commit is contained in:
Bartek Iwańczuk 2019-11-25 15:33:23 +01:00 committed by Ry Dahl
parent bca23e6433
commit 658ec2aaf9
10 changed files with 81 additions and 47 deletions

View file

@ -176,7 +176,7 @@ async fn print_file_info(worker: Worker, module_specifier: ModuleSpecifier) {
let maybe_source_file = global_state_
.file_fetcher
.fetch_source_file_async(&module_specifier)
.fetch_source_file_async(&module_specifier, None)
.await;
if let Err(err) = maybe_source_file {
println!("{}", err);
@ -197,7 +197,7 @@ async fn print_file_info(worker: Worker, module_specifier: ModuleSpecifier) {
let maybe_compiled = global_state_
.clone()
.fetch_compiled_module(&module_specifier)
.fetch_compiled_module(&module_specifier, None)
.await;
if let Err(e) = maybe_compiled {
debug!("compiler error exiting!");