decompose error messages

This commit is contained in:
marin postma 2021-06-24 10:53:51 +02:00
parent a2368db154
commit a1d34faaad
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
7 changed files with 32 additions and 32 deletions

View file

@ -12,9 +12,9 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, thiserror::Error)]
pub enum AuthenticationError {
#[error("you must have an authorization token")]
#[error("You must have an authorization token")]
MissingAuthorizationHeader,
#[error("invalid API key")]
#[error("Invalid API key")]
InvalidToken(String),
}