mirror of
https://github.com/exoticorn/microw8.git
synced 2026-01-20 11:16:42 +01:00
don't exit on runtime error in watch mode
This commit is contained in:
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user