mirror of
https://github.com/YGGverse/titanit.git
synced 2026-03-31 09:05:45 +00:00
update error types
This commit is contained in:
parent
572bd77a3c
commit
156a2c40dc
1 changed files with 4 additions and 4 deletions
|
|
@ -81,8 +81,8 @@ fn handle(
|
|||
}
|
||||
},
|
||||
Err(e) => send(
|
||||
&response::failure::temporary::General {
|
||||
message: Some("Internal server error".to_string()),
|
||||
&response::failure::permanent::BadRequest {
|
||||
message: Some("Invalid request".to_string()),
|
||||
}
|
||||
.into_bytes(),
|
||||
&mut stream,
|
||||
|
|
@ -96,8 +96,8 @@ fn handle(
|
|||
}
|
||||
Err(e) => {
|
||||
return send(
|
||||
&response::failure::temporary::General {
|
||||
message: Some("Internal server error".to_string()),
|
||||
&response::failure::permanent::BadRequest {
|
||||
message: Some("Invalid request".to_string()),
|
||||
}
|
||||
.into_bytes(),
|
||||
&mut stream,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue