summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-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()));