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

Function map_project_error

atomic-cli/src/commands/project/delete.rs:131–144  ·  view source on GitHub ↗
(
    error: atomic_remote::RemoteError,
    ws_slug: &str,
    proj_slug: &str,
)

Source from the content-addressed store, hash-verified

129}
130
131fn map_project_error(
132 error: atomic_remote::RemoteError,
133 ws_slug: &str,
134 proj_slug: &str,
135) -> CliError {
136 if error.is_not_found() {
137 print_error(&format!(
138 "Project '{}' not found in workspace '{}'",
139 proj_slug, ws_slug,
140 ));
141 }
142
143 remote_err(error)
144}
145
146#[cfg(test)]
147mod tests {

Callers 1

execute_with_clientMethod · 0.85

Calls 3

print_errorFunction · 0.85
remote_errFunction · 0.85
is_not_foundMethod · 0.45

Tested by

no test coverage detected