summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSerguey Parkhomovsky <xindigo@gmail.com>2026-03-21 12:22:29 -0700
committerSerguey Parkhomovsky <xindigo@gmail.com>2026-03-21 12:22:29 -0700
commit66603bc707dde0cbbde026333a74866a980dd393 (patch)
treef179f265871b05e4ff298228c9c2abf4d15692bc /src
parent0a76f0ed21af9af5efbd1a637821d7f73ed5502b (diff)
Exit printstats when TLS connector fails
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
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()));