MCPcopy Create free account
hub / github.com/bootc-dev/bootc / check_status_with_stderr

Method check_status_with_stderr

crates/utils/src/command.rs:125–131  ·  view source on GitHub ↗
(&mut self, stderr: std::fs::File)

Source from the content-addressed store, hash-verified

123 anyhow::bail!(format!("Subprocess failed: {self:?}"))
124 }
125 fn check_status_with_stderr(&mut self, stderr: std::fs::File) -> Result<()> {
126 let stderr_buf = last_utf8_content_from_file(stderr);
127 if self.success() {
128 return Ok(());
129 }
130 anyhow::bail!(format!("Subprocess failed: {self:?}\n{stderr_buf}"))
131 }
132}
133
134impl CommandRunExt for Command {

Callers 4

run_capture_stderrMethod · 0.80
runMethod · 0.80
list_imagesMethod · 0.80

Calls 1

Tested by 1