fix: show what errors we're returning
This commit is contained in:
parent
7019671f93
commit
869ccbd65c
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ impl From<axum::http::StatusCode> for UpubError {
|
|||
|
||||
impl axum::response::IntoResponse for UpubError {
|
||||
fn into_response(self) -> axum::response::Response {
|
||||
// TODO it's kind of jank to hide this print down here, i should probably learn how spans work
|
||||
// in tracing and use the library's features but ehhhh
|
||||
tracing::error!("{self:?}");
|
||||
match self {
|
||||
UpubError::Redirect(to) => Redirect::to(&to).into_response(),
|
||||
UpubError::Status(status) => status.into_response(),
|
||||
|
|
Loading…
Reference in a new issue