Skip to content

Dml error reporting should include correct line and column #10

@ickby

Description

@ickby

Make sure that any syntax or Javascript runtime errors are reporter with correct file, line number and column in the dml file

When parsing a dml file syntax errors in the non JavaScript part are correctly found with line number by participle, it just has to be exporter in the error. However, if there is a error in the JavaScript part, this does not work. The JavaScript is not parsed by participle, but by goja, each function on its own. Hence gojas errors are always relative to that code snippet.

Goal should be to convert goja error information in a way that it is locatable in the dml file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions