Skip to content

Commit

Permalink
nerf panic-on-query-fail while we iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-r-ph committed Feb 25, 2025
1 parent d99dd43 commit 67b3207
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rust/property-defs-rs/src/api/v1/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ async fn project_property_definitions_handler(

let total_count: i64 = match qmgr.pool.fetch_one(count_query).await {
Ok(row) => row.get(0),
Err(e) => {
panic!("COUNT Q: {:?}", e);
Err(_e) => {
//panic!("COUNT QUERY ERROR: {:?}", e);
return Err(StatusCode::INTERNAL_SERVER_ERROR);
}
};
Expand All @@ -72,8 +72,8 @@ async fn project_property_definitions_handler(
// TODO: populate PropDefResponse.results entries!!!
}
}
Err(e) => {
panic!("PROPS Q: {:?}", e);
Err(_e) => {
//panic!("PROPS QUERY ERROR: {:?}", e);
return Err(StatusCode::INTERNAL_SERVER_ERROR);
}
}
Expand Down

0 comments on commit 67b3207

Please sign in to comment.