From 4b43c4ed3d4655ffdf0c10c0b10541e63ffd4f17 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 26 Apr 2022 19:56:31 +0530 Subject: [PATCH] fix: rename AccountNotFound to WebsiteNotFound --- src/errors.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 8c0e623..3c310da 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -79,9 +79,9 @@ pub enum ServiceError { /// URL too long, maximum length can't be greater then 2048 characters URLTooLong, - #[display(fmt = "Account not found")] - /// account not found - AccountNotFound, + #[display(fmt = "Website not found")] + /// website not found + WebsiteNotFound, /// when the a path configured for a page is already taken #[display( @@ -158,7 +158,7 @@ impl ResponseError for ServiceError { ServiceError::ConfigError(_) => StatusCode::INTERNAL_SERVER_ERROR, // INTERNAL SERVER ERROR ServiceError::NotAUrl => StatusCode::BAD_REQUEST, //BADREQUEST, ServiceError::URLTooLong => StatusCode::BAD_REQUEST, //BADREQUEST, - ServiceError::AccountNotFound => StatusCode::NOT_FOUND, //NOT FOUND, + ServiceError::WebsiteNotFound => StatusCode::NOT_FOUND, //NOT FOUND, ServiceError::PathTaken(_, _) => StatusCode::BAD_REQUEST, //BADREQUEST, ServiceError::DuplicateRepositoryURL(_, _) => StatusCode::BAD_REQUEST, //BADREQUEST,