error case

This commit is contained in:
Markus Unterwaditzer
2026-02-22 17:55:52 +01:00
committed by Will Greenberg
parent 05fdc0eee2
commit b72712faa2

View File

@@ -70,7 +70,7 @@ pub async fn telnet_send_command_with_output(
let start = start + "RAYHUNTER_TELNET_COMMAND_START".len();
string[start..end].trim_start_matches(['\r', '\n'])
}
_ => &string,
_ => bail!("failed to parse command output from string: {string:?}"),
};
Ok(string.to_string())
}