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

Method message

atomic-cli/src/commands/auth.rs:372–391  ·  view source on GitHub ↗

Render an actionable, accurate error message for this issue. All messages point at registering an identity, since that is the single command that establishes a usable credential for a remote.

(&self)

Source from the content-addressed store, hash-verified

370 /// All messages point at registering an identity, since that is the single
371 /// command that establishes a usable credential for a remote.
372 fn message(&self) -> String {
373 match self {
374 CredentialIssue::NoIdentity => format!(
375 "Not authenticated for {REMEDY_PREFIX}: could not determine an \
376 identity from the remote URL, no --identity was given, and no \
377 default identity is set. Pass --identity <NAME> (see \
378 `atomic identity list`) or set a default with \
379 `atomic identity new <name> --set-default`. {REMEDY_SUFFIX}"
380 ),
381 CredentialIssue::ExplicitIdentityNotFound { name } => format!(
382 "Not authenticated for {REMEDY_PREFIX}: --identity '{name}' does \
383 not match any identity on this machine (see `atomic identity \
384 list`). {REMEDY_SUFFIX}"
385 ),
386 CredentialIssue::KeypairUnavailable { name } => format!(
387 "Not authenticated for {REMEDY_PREFIX}: could not load the signing \
388 key for identity '{name}'. {REMEDY_SUFFIX}"
389 ),
390 }
391 }
392}
393
394const REMEDY_PREFIX: &str = "this remote";

Callers 15

execute_reviseMethod · 0.45
runMethod · 0.45
synthesize_messageMethod · 0.45
write_commitMethod · 0.45
parse_commitFunction · 0.45
extract_commit_metadataFunction · 0.45
format_defaultMethod · 0.45
format_shortMethod · 0.45
format_onelineMethod · 0.45
from_entryMethod · 0.45

Calls

no outgoing calls