(self)
| 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`]. |