From 05fdc0eee29ccf4dae3ff204a831532faa405af0 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 22 Feb 2026 17:54:02 +0100 Subject: [PATCH] do not use debug_assert --- installer/src/util.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer/src/util.rs b/installer/src/util.rs index 55eb735..0dc332f 100644 --- a/installer/src/util.rs +++ b/installer/src/util.rs @@ -19,7 +19,10 @@ pub async fn telnet_send_command_with_output( command: &str, wait_for_prompt: bool, ) -> Result { - debug_assert!(!command.contains('\n')); + if command.contains('\n') { + bail!("multi-line commands are not allowed"); + } + let stream = TcpStream::connect(addr).await?; let (mut reader, mut writer) = stream.into_split();