roles:get error parity

References: https://todo.e3t.cc/~core/trifid/1
This commit is contained in:
core 2023-07-31 00:34:50 -04:00
parent 8111dee595
commit e7da2d7009
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 2 additions and 2 deletions

View File

@ -822,8 +822,8 @@ pub async fn get_role(
} else {
HttpResponse::NotFound().json(APIErrorsResponse {
errors: vec![APIError {
code: "ERR_MISSING_ROLE".to_string(),
message: "Role does not exist".to_string(),
code: "ERR_NOT_FOUND".to_string(),
message: "resource not found".to_string(),
path: None,
}],
})