MCPcopy Create free account
hub / github.com/assert-rs/assert_cmd / unwrap_err

Method unwrap_err

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

Source from the content-addressed store, hash-verified

118
119 #[track_caller]
120 fn unwrap_err(self) -> OutputError {
121 match self.ok() {
122 Ok(output) => panic!(
123 "Completed successfully:\ncommand=`{:?}`\nstdout=```{}```",
124 self,
125 DebugBytes::new(&output.stdout)
126 ),
127 Err(err) => err,
128 }
129 }
130}
131
132/// [`Output`] represented as a [`Result`].

Callers

nothing calls this directly

Calls 1

okMethod · 0.45

Tested by

no test coverage detected