Updated error to be more expressive.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -108,7 +108,7 @@ async fn mtt_conn(
|
||||
result = data.clone();
|
||||
}
|
||||
Err(err) => {
|
||||
status = match err.error_id() {
|
||||
status = match err.get_error_ids().back().unwrap() {
|
||||
ErrorID::DocumentNotFound => StatusCode::NOT_FOUND,
|
||||
_ => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user