don't exit on runtime error in watch mode

This commit is contained in:
2022-01-03 23:36:58 +01:00
parent 10ba7ed3bb
commit 68890e62ad

View File

@@ -86,7 +86,12 @@ fn run(mut args: Arguments) -> Result<()> {
_ => (),
}
uw8.run_frame()?;
if let Err(err) = uw8.run_frame() {
eprintln!("Runtime error: {}", err);
if !watch_mode {
exit(1);
}
}
}
Ok(())