summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/errors.rs b/src/errors.rs
index ee3ca71..082315e 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -62,7 +62,7 @@ impl fmt::Display for AppError {
#[derive(Serialize)]
pub struct AppErrorResponse {
- pub error: String,
+ pub detail: String,
}
impl ResponseError for AppError {
@@ -74,7 +74,7 @@ impl ResponseError for AppError {
}
fn error_response(&self) -> HttpResponse {
HttpResponse::build(self.status_code()).json(AppErrorResponse {
- error: self.message(),
+ detail: self.message(),
})
}
}