mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2026-02-11 06:15:25 +00:00
loader errors
This commit is contained in:
@@ -44,9 +44,10 @@ pub async fn ui_handler() {
|
||||
selections.selections[selections.current_selection as usize].clone();
|
||||
|
||||
let entry = unsafe {
|
||||
load_binary(&selection.short_name)
|
||||
.await
|
||||
.expect("unable to load binary")
|
||||
match load_binary(&selection.short_name).await {
|
||||
Ok(entry) => entry,
|
||||
Err(e) => panic!("unable to load binary: {:?}", e),
|
||||
}
|
||||
};
|
||||
BINARY_CH.send(entry).await;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user