mirror of
https://github.com/exoticorn/microw8.git
synced 2026-11-13 23:17:19 +01:00
don't exit on runtime error in watch mode
This commit is contained in:
1 parent
10ba7ed3bb
commit
68890e62ad
1 file changed
+6
-1
+6
-1
@@ -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