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

Method message

atomic-cli/src/commands/auth.rs:125–140  ·  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

123 /// All messages point at registering an identity, since that is the single
124 /// command that establishes a usable credential for a remote.
125 fn message(&self) -> String {
126 match self {
127 CredentialIssue::NoIdentityInUrl => format!(
128 "Not authenticated for {REMEDY_PREFIX}: could not determine an \
129 identity from the remote URL. {REMEDY_SUFFIX}"
130 ),
131 CredentialIssue::IdentityNotFound { name } => format!(
132 "Not authenticated for {REMEDY_PREFIX}: identity '{name}' is not \
133 registered on this machine. {REMEDY_SUFFIX}"
134 ),
135 CredentialIssue::KeypairUnavailable { name } => format!(
136 "Not authenticated for {REMEDY_PREFIX}: could not load the signing \
137 key for identity '{name}'. {REMEDY_SUFFIX}"
138 ),
139 }
140 }
141}
142
143const REMEDY_PREFIX: &str = "this remote";

Callers 15

execute_reviseMethod · 0.45
runMethod · 0.45
write_commitMethod · 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