MCPcopy Create free account
hub / github.com/cosdata/cosdata / fmt

Method fmt

src/api/auth/error.rs:15–23  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

13
14impl Display for AuthError {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16 match self {
17 Self::WrongCredentials => write!(f, "Wrong Credentials!"),
18 Self::InvalidToken => write!(f, "Invalid auth token!"),
19 Self::FailedToExtractTokenFromRequest => {
20 write!(f, "Failed to extract token from request!")
21 }
22 }
23 }
24}
25
26impl ResponseError for AuthError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected