···110110 Err(e) => {
111111 match e {
112112 LuminaError::DbError(LuminaDbError::Postgres(postgres_error)) => {
113113+ // This is not the kind of practice I'd want, but it does the job
114114+ let postgres_error_dbg = format!("{:?}", postgres_error);
113115 // Check if it's a "no rows returned" type error
114114- if postgres_error.to_string().contains("no rows") || postgres_error.to_string().contains("RowCount") {
116116+ // I wish I could just open those fields...
117117+ if postgres_error_dbg.contains("kind: RowCount, cause: None") {
115118 info_elog!( ev_log,"Session revival failed: token not found or expired.");
116119 } else {
117117- info_elog!(ev_log,"Session revival failed: database error: {:?}", postgres_error);
120120+ info_elog!(ev_log,"Session revival failed: database error: {postgres_error_dbg}");
118121 }
119122 }
120123