MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / unwrap_err

Method unwrap_err

src/output.rs:86–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 /// [`Output`]: std::process::Output
85 #[track_caller]
86 fn unwrap_err(self) -> OutputError {
87 match self.ok() {
88 Ok(output) => panic!(
89 "Command completed successfully\nstdout=```{}```",
90 DebugBytes::new(&output.stdout)
91 ),
92 Err(err) => err,
93 }
94 }
95}
96
97impl OutputOkExt for process::Output {

Callers

nothing calls this directly

Implementers 2

cmd.rssrc/cmd.rs
output.rssrc/output.rs

Calls 1

okMethod · 0.45

Tested by

no test coverage detected