diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-11-25 15:33:23 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2019-11-25 09:33:23 -0500 |
commit | 658ec2aaf9c7e0d0b4ded4e97a3d89dc2fa25806 (patch) | |
tree | 1996038f0f62ed207fe5a1adb518a299eafbe0c8 /cli/global_state.rs | |
parent | bca23e64339f9b41272e4a01e4c1a86602e5c1e4 (diff) |
better error message for missing module (#3402)
Diffstat (limited to 'cli/global_state.rs')
-rw-r--r-- | cli/global_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/global_state.rs b/cli/global_state.rs index 38aff2093..fd4cf8047 100644 --- a/cli/global_state.rs +++ b/cli/global_state.rs @@ -124,13 +124,14 @@ impl ThreadSafeGlobalState { pub fn fetch_compiled_module( self: &Self, module_specifier: &ModuleSpecifier, + maybe_referrer: Option<ModuleSpecifier>, ) -> impl Future<Output = Result<CompiledModule, ErrBox>> { let state1 = self.clone(); let state2 = self.clone(); self .file_fetcher - .fetch_source_file_async(&module_specifier) + .fetch_source_file_async(&module_specifier, maybe_referrer) .and_then(move |out| match out.media_type { msg::MediaType::Unknown => state1.js_compiler.compile_async(&out), msg::MediaType::Json => state1.json_compiler.compile_async(&out), |