exit on all errors, not just SocketNotFound

This commit is contained in:
Alex Janka 2024-08-27 11:51:20 +10:00
parent a74592ef4c
commit 90ed49b865

View file

@ -42,7 +42,9 @@ async fn main() -> Res<()> {
let mut recent_code = None;
while let Some(event) = events.next().await {
if let Err(swayipc_async::Error::SocketNotFound) = event {
if let Err(e) = event.as_ref() {
log::error!("error getting next event: {e:?}");
log::error!("exiting...");
break;
}