From 1cb8cfc0ef8aae69c43d567f81ef30fa4b70eaa5 Mon Sep 17 00:00:00 2001 From: Ruslan Pislari Date: Mon, 9 Sep 2024 10:39:14 +0300 Subject: [PATCH] fix: print execution error and set proper process status code on error --- Cargo.toml | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6cb7e3c..1894f18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["crates/*"] resolver = "2" [workspace.package] -version = "0.5.5" +version = "0.5.6" edition = "2021" publish = false authors = ["FastEdge Development Team"] diff --git a/src/main.rs b/src/main.rs index f898dae..4663638 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,8 +141,8 @@ async fn main() -> anyhow::Result<()> { backoff: 64, }); tokio::select! { - _ = http => { - + res = http => { + res? }, _ = tokio::signal::ctrl_c() => { shutdown_coordinator.shutdown().await