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

Function server_url_missing

atomic-cli/src/commands/client.rs:152–159  ·  view source on GitHub ↗

Error used when no server is configured — shared by the apex helpers.

(server_override: Option<&str>)

Source from the content-addressed store, hash-verified

150
151/// Error used when no server is configured — shared by the apex helpers.
152fn server_url_missing(server_override: Option<&str>) -> CliError {
153 let hint = if let Some(name) = server_override {
154 format!("Server profile '{}' has no URL configured.", name)
155 } else {
156 "Server not configured. Run 'atomic identity register <server-url>' first.".to_string()
157 };
158 CliError::Internal(anyhow::anyhow!("{}", hint))
159}
160
161/// Build an apex-scoped [`StorageClient`] authenticating as a **named**
162/// identity rather than whichever one the server profile resolves to.

Callers 2

build_apex_clientFunction · 0.85
apex_server_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected