MCPcopy Create free account
hub / github.com/Wulf/create-rust-app / error_string

Method error_string

crates/create-rust-app/src/storage/mod.rs:252–260  ·  view source on GitHub ↗
(
        &self,
        message: &'static str,
        key: impl std::fmt::Display,
        error: impl std::fmt::Display,
    )

Source from the content-addressed store, hash-verified

250 }
251
252 fn error_string(
253 &self,
254 message: &'static str,
255 key: impl std::fmt::Display,
256 error: impl std::fmt::Display,
257 ) -> String {
258 let bucket = &self.bucket;
259 format!("{message} (bucket: '{bucket}', key: '{key}', error: '{error}')")
260 }
261
262 fn client_or_error(&self) -> Result<&Client, String> {
263 self.client.as_ref().ok_or_else(|| {

Callers 6

downloadMethod · 0.80
download_uriMethod · 0.80
uploadMethod · 0.80
upload_uriMethod · 0.80
deleteMethod · 0.80
delete_manyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected