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

Function not_found_push_message

atomic-cli/src/commands/push/helpers.rs:416–423  ·  view source on GitHub ↗

Build the user-facing message for a "not found" (HTTP 404) response during a push. The server deliberately masks private projects: it returns 404 to callers who are not authenticated/authorized rather than revealing that the project exists. Because a push is a write that always requires auth, a 404 almost always means the caller's credentials are missing/expired or they lack push access — not tha

(target: &str)

Source from the content-addressed store, hash-verified

414/// `target` describes what was not found, e.g. `"project/view 'dev'"` or
415/// `"the project"`.
416fn not_found_push_message(target: &str) -> String {
417 format!(
418 "Remote returned 'not found' for {target}. This means either it \
419 doesn't exist, or you're not authenticated/authorized to push to it. \
420 Make sure your identity is registered with the server \
421 (`atomic identity register <server-url>`) and that you have push access."
422 )
423}
424
425/// Convert a remote error to a CLI error.
426///

Callers 1

convert_remote_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected