this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Enhance no session found detection

+5 -2
+5 -2
server/src/client_communication.rs
··· 110 110 Err(e) => { 111 111 match e { 112 112 LuminaError::DbError(LuminaDbError::Postgres(postgres_error)) => { 113 + // This is not the kind of practice I'd want, but it does the job 114 + let postgres_error_dbg = format!("{:?}", postgres_error); 113 115 // Check if it's a "no rows returned" type error 114 - if postgres_error.to_string().contains("no rows") || postgres_error.to_string().contains("RowCount") { 116 + // I wish I could just open those fields... 117 + if postgres_error_dbg.contains("kind: RowCount, cause: None") { 115 118 info_elog!( ev_log,"Session revival failed: token not found or expired."); 116 119 } else { 117 - info_elog!(ev_log,"Session revival failed: database error: {:?}", postgres_error); 120 + info_elog!(ev_log,"Session revival failed: database error: {postgres_error_dbg}"); 118 121 } 119 122 } 120 123