mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
slighly more information when reporting valgrind problem
This commit is contained in:
parent
e141894fa1
commit
c6ce18d56c
1 changed files with 5 additions and 2 deletions
|
@ -111,7 +111,7 @@ mod cli_run {
|
|||
build_example(file, &all_flags[..]);
|
||||
|
||||
let out = if use_valgrind && ALLOW_VALGRIND {
|
||||
let (valgrind_out, raw_xml) = if let Some(input_file) = input_file {
|
||||
let (valgrind_out, raw_xml) = if let Some(ref input_file) = input_file {
|
||||
run_with_valgrind(
|
||||
stdin,
|
||||
&[
|
||||
|
@ -149,7 +149,10 @@ mod cli_run {
|
|||
println!(" {}", text);
|
||||
}
|
||||
}
|
||||
panic!("Valgrind reported memory errors");
|
||||
panic!(
|
||||
"Valgrind reported memory errors in {:?} with flags {:?}",
|
||||
file, flags
|
||||
);
|
||||
}
|
||||
} else {
|
||||
let exit_code = match valgrind_out.status.code() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue