improve error handling
This commit is contained in:
parent
c9fa93de72
commit
355febf927
12 changed files with 443 additions and 258 deletions
|
@ -4,7 +4,9 @@ use tauri_sys::{event, tauri};
|
|||
pub async fn emit() -> anyhow::Result<()> {
|
||||
event::emit("foo", &"bar").await;
|
||||
|
||||
ensure!(tauri::invoke::<_, bool>("verify_receive", &()).await.unwrap());
|
||||
ensure!(tauri::invoke::<_, bool>("verify_receive", &())
|
||||
.await
|
||||
.unwrap());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue