Skip to content

Commit

Permalink
fix typo in state.rs (#4699)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg authored Jul 25, 2022
1 parent fd4c851 commit c7fec3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/fix-typo-in-state-rs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fix typo in invalid state access panic message.
2 changes: 1 addition & 1 deletion core/tauri/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl<'r, 'de: 'r, T: Send + Sync + 'static, R: Runtime> CommandArg<'de, R> for S
fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError> {
Ok(command.message.state_ref().try_get().unwrap_or_else(|| {
panic!(
"state not managed for field `{}` on command `{}`. You muse call `.manage()` before using this command",
"state not managed for field `{}` on command `{}`. You must call `.manage()` before using this command",
command.key, command.name
)
}))
Expand Down

0 comments on commit c7fec3e

Please sign in to comment.