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:362–369  ·  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

360/// `target` describes what was not found, e.g. `"project/view 'dev'"` or
361/// `"the project"`.
362fn not_found_push_message(target: &str) -> String {
363 format!(
364 "Remote returned 'not found' for {target}. This means either it \
365 doesn't exist, or you're not authenticated/authorized to push to it. \
366 Make sure your identity is registered with the server \
367 (`atomic identity register <server-url>`) and that you have push access."
368 )
369}
370
371/// Convert a remote error to a CLI error.
372///

Callers 1

convert_remote_errorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected