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

Add more failure context / Improve error structure #296

Merged

Conversation

Hoverbear
Copy link
Contributor

Description

Offer users might nicer, more contextual errors:

image

Checklist
  • Formatted with cargo fmt
  • Built with nix build
  • Ran flake checks with nix flake check
  • Added or updated relevant tests (leave unchecked if not applicable)
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • Linked to related issues (leave unchecked if not applicable)
Validating with install.determinate.systems

If a maintainer has added the upload to s3 label to this PR, it will become available for installation via install.determinate.systems:

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/pr/$PR_NUMBER | sh -s -- install

@Hoverbear Hoverbear self-assigned this Mar 2, 2023
@Hoverbear
Copy link
Contributor Author

I need to fix some issues with the linenumber being reported wrong...

@Hoverbear Hoverbear changed the title Hoverbear/ds 691 add more failure context to diagnostics Add more failure context / Improve error structure Mar 3, 2023
@Hoverbear Hoverbear marked this pull request as ready for review March 3, 2023 17:57
@Hoverbear Hoverbear requested a review from cole-h March 3, 2023 17:57
src/diagnostics.rs Outdated Show resolved Hide resolved
@Hoverbear Hoverbear added this to the v0.5.0 milestone Mar 3, 2023
@Hoverbear Hoverbear mentioned this pull request Mar 3, 2023
6 tasks
@Hoverbear Hoverbear merged commit 9032589 into main Mar 3, 2023
@Hoverbear Hoverbear deleted the hoverbear/ds-691-add-more-failure-context-to-diagnostics branch March 3, 2023 22:20
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

Successfully merging this pull request may close these issues.

2 participants