From 66603bc707dde0cbbde026333a74866a980dd393 Mon Sep 17 00:00:00 2001 From: Serguey Parkhomovsky Date: Sat, 21 Mar 2026 12:22:29 -0700 Subject: Exit printstats when TLS connector fails --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ac9b3b1..a59523c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -160,8 +160,8 @@ async fn poll_bambu( { Ok(c) => c, Err(e) => { - error!(name, error = %e, "Failed to build TLS connector — this printer will not be polled"); - return; + error!(name, error = %e, "Failed to build TLS connector"); + process::exit(1); } }; mqttoptions.set_transport(Transport::tls_with_config(connector.into())); -- cgit v1.2.3