mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +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[..]);
|
build_example(file, &all_flags[..]);
|
||||||
|
|
||||||
let out = if use_valgrind && ALLOW_VALGRIND {
|
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(
|
run_with_valgrind(
|
||||||
stdin,
|
stdin,
|
||||||
&[
|
&[
|
||||||
|
@ -149,7 +149,10 @@ mod cli_run {
|
||||||
println!(" {}", text);
|
println!(" {}", text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
panic!("Valgrind reported memory errors");
|
panic!(
|
||||||
|
"Valgrind reported memory errors in {:?} with flags {:?}",
|
||||||
|
file, flags
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let exit_code = match valgrind_out.status.code() {
|
let exit_code = match valgrind_out.status.code() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue