mirror of
https://github.com/casey/just.git
synced 2024-12-04 11:14:03 +03:00
8 lines
273 B
Rust
8 lines
273 B
Rust
pub(crate) fn assert_success(output: &std::process::Output) {
|
|
if !output.status.success() {
|
|
eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr));
|
|
eprintln!("stdout: {}", String::from_utf8_lossy(&output.stdout));
|
|
panic!("{}", output.status);
|
|
}
|
|
}
|