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)
| 414 | /// `target` describes what was not found, e.g. `"project/view 'dev'"` or |
| 415 | /// `"the project"`. |
| 416 | fn 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 | /// |
no outgoing calls
no test coverage detected