MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / view_error

Function view_error

libatomic/src/daemon/services_sandbox.rs:98–105  ·  view source on GitHub ↗

A domain error, with a missing view said as such.

(error: RepositoryError)

Source from the content-addressed store, hash-verified

96
97/// A domain error, with a missing view said as such.
98fn view_error(error: RepositoryError) -> Status {
99 match error {
100 RepositoryError::ViewNotFound { name } => {
101 domain_status(ErrorCode::NotFound, format!("no view '{name}'"))
102 }
103 other => repository_error(other),
104 }
105}
106
107/// The view a request names: `target`'s name, or `legacy` (the admin
108/// requests' display-hint string). A `target.view_id` must agree with it.

Callers

nothing calls this directly

Calls 2

domain_statusFunction · 0.85
repository_errorFunction · 0.70

Tested by

no test coverage detected