Better remap-lang error reporting #4803
Labels
domain: vrl
Anything related to the Vector Remap Language
type: enhancement
A value-adding code change that enhances its existing functionality.
Milestone
We should do another pass over the remap-lang implementation, and improve its error messages.
There are two areas we should improve:
The parser errors generated by the
pest
library are based on the rules we define in the grammar. These rules are sometimes named reasonable for internal use, but aren't as useful in error messages. We can leverage Pest's error manipulation API to improve this situation.Parser errors show line and column numbers with a visual representation of the code that failed to compile. However, our custom errors do not, which makes them less easy to parse. We don't need to get too fancy here, but it would be nice if we could make sure the error messages are as clear as they can be (by providing whatever relevant context we can in the messages themselves), and perhaps add the line number where the error occurred (this is information we have).
The text was updated successfully, but these errors were encountered: