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()) } }