this change to main.rs is needed to support the error handler

This commit is contained in:
bunnie 2025-08-14 02:04:04 +08:00
parent 0bb5ae95b9
commit 6cd5a23893

View file

@ -82,7 +82,15 @@ pub unsafe extern "C" fn rust_entry() -> ! {
});
// Process any command line requests
repl.process();
match repl.process() {
Err(e) => {
if let Some(m) = e.message {
crate::println!("{}", m);
repl.abort_cmd();
}
}
_ => (),
};
// Animate the LED flashing to indicate repl loop is running
delay(1);