From a3e35b997e0395e1c424132a63590e6f5a0cfd5a Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Oct 2021 11:44:14 +0200 Subject: Fix: Raise error if one happenes Signed-off-by: Matthias Beyer --- service-person/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || { -- cgit v1.2.3