mirror of
https://github.com/casey/just.git
synced 2024-11-23 11:04:09 +03:00
10 lines
274 B
Rust
10 lines
274 B
Rust
use super::*;
|
|
|
|
pub(crate) fn assert_success(output: &Output) {
|
|
if !output.status.success() {
|
|
eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr));
|
|
eprintln!("stdout: {}", String::from_utf8_lossy(&output.stdout));
|
|
panic!("{}", output.status);
|
|
}
|
|
}
|