Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error messages for vidyut.prakriya #4

Open
akprasad opened this issue Jan 21, 2023 · 0 comments
Open

Improve error messages for vidyut.prakriya #4

akprasad opened this issue Jan 21, 2023 · 0 comments

Comments

@akprasad
Copy link
Contributor

If the vidyut_prakriya crate fails, our vidyut.prakriya wrapper passes through the raw Rust error and doesn't give much insight on how to correct the error.

This is poor UX. In addition to improving the upstream error messages, we should provide informative messages here.

Errors to test:

  • Could not load dhatupatha (file doesn't exist)
  • Could not load dhatupatha (file is malformed)
  • Could not load sutrapatha (file doesn't exist)
  • Could not load sutrapatha (file is malformed)
  • Invalid arguments (bad upadesha, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant