mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
better parse error reporting in test_load
This commit is contained in:
parent
53a0f4f9a5
commit
d2600b47a0
1 changed files with 8 additions and 1 deletions
|
@ -132,7 +132,14 @@ mod test_load {
|
||||||
8,
|
8,
|
||||||
builtin_defs_map,
|
builtin_defs_map,
|
||||||
);
|
);
|
||||||
let mut loaded_module = loaded.expect("Test module failed to load");
|
let mut loaded_module = match loaded {
|
||||||
|
Ok(x) => x,
|
||||||
|
Err(roc_load::file::LoadingProblem::ParsingFailedReport(report)) => {
|
||||||
|
println!("{}", report);
|
||||||
|
panic!();
|
||||||
|
}
|
||||||
|
Err(e) => panic!("{:?}", e),
|
||||||
|
};
|
||||||
|
|
||||||
let home = loaded_module.module_id;
|
let home = loaded_module.module_id;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue