Updated error to be more expressive.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-25 10:16:50 -05:00
parent 7e067fde8c
commit 5251689158
15 changed files with 211 additions and 106 deletions

View File

@@ -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,
};