Skip to content

Commit 49fafc7

Browse files
committed
main: log unsupported message received
1 parent 62a2499 commit 49fafc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,10 @@ async fn inner_loop(state: &mut AppState<'_>) -> Result<()> {
404404
"#" => {
405405
log::debug!("[{:?}], Keepalive", std::time::SystemTime::now());
406406
}
407-
_ => {}
407+
_ => {
408+
log::error!("Unsupported Message received: {text}");
409+
return Err(TsunaLoopError::Abort().into());
410+
}
408411
}
409412
}
410413
None => {

0 commit comments

Comments
 (0)