R2NorthstarTools / R2NorthstarTools/FlightCore
Add own error type to enumerate errors
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 94
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
AFAIK in Rust one can create a custom error type. In our case we could basically just resort to an enum and then in the frontend show error message based on enum value.
This would also help a lot with localising error message which currently are hardcoded (English) strings in backend.
Need to look more into custom error types before I can start working on that though...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by researching Rust custom error types and tracing how backend errors reach the frontend. Review the current hardcoded English backend messages and frontend error handling; the work is done when errors use a defined enum and the frontend can display messages from its values for localization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, tauri
- Domain
- full-stack, internationalization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100