mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
fix: fix typo in error description
This commit is contained in:
@@ -80,11 +80,11 @@ mod schema {
|
|||||||
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
|
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
|
||||||
#[schema(as = Flow::TelegramFill::ErrorCode)]
|
#[schema(as = Flow::TelegramFill::ErrorCode)]
|
||||||
pub enum ErrorCode {
|
pub enum ErrorCode {
|
||||||
#[display("This flow already completed.")]
|
#[display("This flow is already completed.")]
|
||||||
#[status_code = "actix_web::http::StatusCode::CONFLICT"]
|
#[status_code = "actix_web::http::StatusCode::CONFLICT"]
|
||||||
AlreadyCompleted,
|
AlreadyCompleted,
|
||||||
|
|
||||||
#[display("Username is already exists.")]
|
#[display("User with that name already exists.")]
|
||||||
#[status_code = "actix_web::http::StatusCode::BAD_REQUEST"]
|
#[status_code = "actix_web::http::StatusCode::BAD_REQUEST"]
|
||||||
UsernameAlreadyExists,
|
UsernameAlreadyExists,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user