mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +00:00
propagate better error from server.check_running()
This commit is contained in:
1 parent
c516a8df3e
commit
b2a565b0b4
2 files changed
+6
-2
No files matched your search
@@ -106,6 +106,7 @@ pub(super) fn io_error_code(kind: std::io::ErrorKind) -> StatusCode {
|
||||
| ErrorKind::TimedOut => StatusCode::GATEWAY_TIMEOUT,
|
||||
| ErrorKind::FileTooLarge => StatusCode::PAYLOAD_TOO_LARGE,
|
||||
| ErrorKind::StorageFull => StatusCode::INSUFFICIENT_STORAGE,
|
||||
| ErrorKind::Interrupted => StatusCode::SERVICE_UNAVAILABLE,
|
||||
| _ => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user