Skip to content

Commit 2bbe1dc

Browse files
sbergenlpil
authored andcommitted
Improve the error message when echo tests fail on missing target executable
1 parent 306b156 commit 2bbe1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-output/src/tests/echo.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn run_and_capture_output(
7171
.envs(env.iter().map(|pair| (&pair.0, &pair.1)))
7272
.current_dir(paths.root())
7373
.spawn()
74-
.expect("spawn run process");
74+
.unwrap_or_else(|e| panic!("Failed to spawn process '{}': {}", &program, &e));
7575

7676
let mut stderr = process.stderr.take().expect("take stderr");
7777
let mut output = String::new();

0 commit comments

Comments
 (0)