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

hsec-tools: include affected FilePath with parse errors #227

Merged

Conversation

frasertweedale
Copy link
Collaborator

The listAdvisories error type is [ParseAdvisoryError]. The error values do not have context indicating the file that caused the error. As a result, the error message(s) do not point to the problematic file(s).

Update the error type to [(FilePath, ParseAdvisoryError)]; each parse error is paired with the path to the problematic file. As a result, user error messages are much more useful.


hsec-tools

  • Previous advisories are still valid

The `listAdvisories` error type is `[ParseAdvisoryError]`.  The
error values do not have context indicating the file that caused the
error.  As a result, the error message(s) do not point to the
problematic file(s).

Update the error type to `[(FilePath, ParseAdvisoryError)]`; each
parse error is paired with the path to the problematic file.  As a
result, user error messages are much more useful.
@frasertweedale frasertweedale merged commit 7c37427 into haskell:main Jul 30, 2024
8 checks passed
@frasertweedale frasertweedale deleted the fix/parse-error-include-filepath branch July 30, 2024 06:40
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