haskell / security-advisories

https://haskell.github.io/security-advisories/
Other
46 stars 18 forks source link

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

Closed frasertweedale closed 4 months ago

frasertweedale commented 4 months ago

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