Skip to content

sourcescanner: collect error messages and expose them

It just printed errors to stderr and always returns success even if parsing fails. This prevents us to write any tests for it.

As a first step collect all lexing/parsing error messages and print them to stderr after the scanner is done. This allows us to add some regression tests for !78 (merged).

In the future we probably want to raise an exception with those errors if parsing fails.

Merge request reports