MCPcopy Create free account
hub / github.com/dfinity/orbit / details

Method details

core/control-panel/impl/src/errors/artifact.rs:17–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

15
16impl DetailableError for ArtifactError {
17 fn details(&self) -> Option<HashMap<String, String>> {
18 let mut details = HashMap::new();
19 match self {
20 ArtifactError::ValidationError { info } => {
21 details.insert("info".to_string(), info.to_string());
22 Some(details)
23 }
24 ArtifactError::NotFound { id } => {
25 details.insert("id".to_string(), id.to_string());
26 Some(details)
27 }
28 }
29 }
30}

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected