Tauri Commands Error Handling

Use when designing production error handling for Tauri v2 commands — `thiserror` enums, manual `Serialize` impls emitting `{ kind, message }` for JS discriminated unions, `Result` returns, `?` propagation, panic safety at the IPC boundary, structured logging via `tracing`, and a typed `CommandError` union with exhaustiveness on the JS side.

stuffbucket d808a30 3 files · 11.4 KB Updated

File contents

stuffbucket/skills/tree/main/plugins/stuffbucket/skills/tauri-commands-error-handling commit d808a30f19

Frequently asked questions

npx skillmds@latest add stuffbucket/tauri-commands-error-handling