mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
parent
8011eced14
commit
b1230a85e8
3 changed files with 15 additions and 5 deletions
|
@ -1107,11 +1107,13 @@ impl Graph {
|
|||
totals: &mut HashMap<ModuleSpecifier, usize>,
|
||||
) -> ModuleInfo {
|
||||
let not_seen = seen.insert(specifier.clone());
|
||||
let module = if let ModuleSlot::Module(module) = self.get_module(specifier)
|
||||
{
|
||||
module
|
||||
} else {
|
||||
unreachable!();
|
||||
let module = match self.get_module(specifier) {
|
||||
ModuleSlot::Module(module) => module,
|
||||
ModuleSlot::Err(err) => {
|
||||
error!("{}: {}", colors::red_bold("error"), err.to_string());
|
||||
std::process::exit(1);
|
||||
}
|
||||
_ => unreachable!(),
|
||||
};
|
||||
let mut deps = Vec::new();
|
||||
let mut total_size = None;
|
||||
|
|
2
cli/tests/info_missing_module.out
Normal file
2
cli/tests/info_missing_module.out
Normal file
|
@ -0,0 +1,2 @@
|
|||
error: Cannot resolve module "file://[WILDCARD]/bad-module.js" from "file://[WILDCARD]/error_009_missing_js_module.js".
|
||||
at file://[WILDCARD]/error_009_missing_js_module.js:1:0
|
|
@ -3407,6 +3407,12 @@ itest!(import_file_with_colon {
|
|||
http_server: true,
|
||||
});
|
||||
|
||||
itest!(info_missing_module {
|
||||
args: "info error_009_missing_js_module.js",
|
||||
output: "info_missing_module.out",
|
||||
exit_code: 1,
|
||||
});
|
||||
|
||||
itest!(info_recursive_modules {
|
||||
args: "info --quiet info_recursive_imports_test.ts",
|
||||
output: "info_recursive_imports_test.out",
|
||||
|
|
Loading…
Add table
Reference in a new issue