mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
decompose error messages
This commit is contained in:
parent
a2368db154
commit
a1d34faaad
7 changed files with 32 additions and 32 deletions
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue