Skip to content

Commit

Permalink
feat(main): actually panic when failing to connect to database
Browse files Browse the repository at this point in the history
  • Loading branch information
H1ghBre4k3r committed Nov 14, 2023
1 parent ccd7000 commit f48efcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn main() -> std::io::Result<()> {
let secret_key = Key::generate();

if let Err(e) = database::init_db().await {
tracing::error!("failed to connect to DB: {e:?}");
panic!("failed to connect to DB: {e:?}");
};

HttpServer::new(move || {
Expand Down

0 comments on commit f48efcc

Please sign in to comment.