From ef1c47e6fd5cec36dd73f830b08a02320e2ebd41 Mon Sep 17 00:00:00 2001 From: "Willow (GHOST)" Date: Sun, 26 Jul 2026 13:27:13 +0100 Subject: [PATCH] fix(uplc): print errors from api route handlers --- uplc/src/api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uplc/src/api.rs b/uplc/src/api.rs index e9f45d1..1cd9083 100644 --- a/uplc/src/api.rs +++ b/uplc/src/api.rs @@ -1,5 +1,3 @@ -use std::env; - use crate::db::DB; use axum::{ Json, Router, http, @@ -8,6 +6,7 @@ use axum::{ }; use color_eyre::eyre::Result; use serde_json::{Value, json}; +use std::{env, fmt}; use tokio::net::TcpListener; struct AppError(color_eyre::eyre::Error); @@ -18,8 +17,9 @@ impl IntoResponse for AppError { } } -impl> From for AppError { +impl + fmt::Debug> From for AppError { fn from(err: E) -> Self { + eprintln!("erroration {:?}", err); AppError(err.into()) } } -- 2.51.2