Flux is a lightweight scripting language for querying databases (like InfluxDB) and working with data. It's part of InfluxDB 1.7 and 2.0, but can be run independently of those.
This PR builds upon my last PR #5408 to use the expected form of AST to hold an error produced my invalid UTF8. The function flux_ast_get_error wants the error to be in the base node of the first file, rather than in the package itself.
This produces a nicer error message when clients pass in Flux code with invalid UTF-8.
This PR builds upon my last PR #5408 to use the expected form of AST to hold an error produced my invalid UTF8. The function
flux_ast_get_error
wants the error to be in the base node of the first file, rather than in the package itself.This produces a nicer error message when clients pass in Flux code with invalid UTF-8.