Translate an error message
This commit is contained in:
parent
2b7e88ae95
commit
3bc17cea79
6 changed files with 18 additions and 7 deletions
|
|
@ -8,10 +8,10 @@ use axum_extra::extract::Query;
|
|||
|
||||
use crate::{
|
||||
app::Context,
|
||||
consts,
|
||||
data::{self, db},
|
||||
ron_extractor::ExtractRon,
|
||||
ron_utils::{ron_error, ron_response_ok},
|
||||
translation::Sentence,
|
||||
};
|
||||
|
||||
use super::rights::*;
|
||||
|
|
@ -31,7 +31,7 @@ pub async fn get_scheduled_recipes(
|
|||
} else {
|
||||
Err(ErrorResponse::from(ron_error(
|
||||
StatusCode::UNAUTHORIZED,
|
||||
consts::NOT_AUTHORIZED_MESSAGE,
|
||||
context.tr.t(Sentence::ActionNotAuthorized),
|
||||
)))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue