diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 11:44:14 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-10-24 12:02:00 +0200 |
commit | a3e35b997e0395e1c424132a63590e6f5a0cfd5a (patch) | |
tree | 30192d0595e0a6a6cf732738dcb2044b5580c3b9 | |
parent | 104f04bd1bef70ff20f66a787e7ad54148ac78be (diff) |
Fix: Raise error if one happenes
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | service-person/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service-person/src/main.rs b/service-person/src/main.rs index 5fd9a9d..60318ca 100644 --- a/service-person/src/main.rs +++ b/service-person/src/main.rs @@ -37,7 +37,7 @@ async fn main() -> anyhow::Result<()> { { let conn = db_connection_pool.get().expect("Failed to get connection from pool"); - embedded_migrations::run_with_output(&conn, &mut std::io::stdout()); + embedded_migrations::run_with_output(&conn, &mut std::io::stdout())?; } // drop `conn` here HttpServer::new(move || { |