decompose error messages

This commit is contained in:
marin postma
2021-06-24 10:53:51 +02:00
parent a2368db154
commit a1d34faaad
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),
}