MCPcopy Create free account
hub / github.com/Sovereign-Engineering/obscuravpn-client / write_error

Method write_error

rustlib/src/debug_bundle/builder.rs:31–36  ·  view source on GitHub ↗
(&mut self, name: &str, error: impl Debug + Display)

Source from the content-addressed store, hash-verified

29 }
30
31 fn write_error(&mut self, name: &str, error: impl Debug + Display) {
32 tracing::error!(message_id = "dezX8SLf", ?error, "failed to archive {name:?}");
33 if let Err(error) = self.zipper.write_file(format!("archive-error-{name}.txt"), error.to_string().as_bytes()) {
34 tracing::error!(message_id = "eWLYHIG7", ?error, "failed to archive error for {name:?}");
35 }
36 }
37
38 fn add(&mut self, name: &str, f: impl FnOnce(&mut Zipper) -> anyhow::Result<()>) {
39 if let Err(error) = f(&mut self.zipper) {

Callers 1

addMethod · 0.80

Calls 1

write_fileMethod · 0.80

Tested by

no test coverage detected