diff --git a/src/api/error.rs b/src/api/error.rs index 1c8ccb2..0c87758 100644 --- a/src/api/error.rs +++ b/src/api/error.rs @@ -11,6 +11,7 @@ pub enum AppError { Internal(&'static str), } +#[cfg(feature = "server")] impl AppError { pub fn db_conn(e: impl std::fmt::Display) -> Self { tracing::error!("DB connection failed: {e}");