Skip to content

[BUG] ParseTree returns error information twice #168

@sfarazkazmi

Description

@sfarazkazmi

Describe the bug
When using parse-tree command, error information in printed twice with slightly different text.

To Reproduce
Please supply:

var status = ['ACTIVE']

NOTE: Please be sure that the templates, rules and logs you provide as part of your bug report do not contain any sensitive information.

Expected behavior
There should be one error log instead of duplication. Ideally should be Json format
[
{ "errorType": "ParsingError", "ErrorMessage": "Error parsing file at line 1 at column 1, when handling , fragment var status = ['ACTIVE']"},
{other line errors},
{other line errors},
]

Screenshots
Output from Guard is
`Parsing error handling rule, Error = Parser Error when parsing rules file Parsing Error Error parsing file at line 1 at column 1, when handling , fragment var status = ['ACTIVE']

Error occurred Parser Error when parsing rules file Parsing Error Error parsing file at line 1 at column 1, when handling , fragment var status = ['ACTIVE']
`

Operating System:
[eg, MacOS, Windows, Ubuntu, etc]
Linux
OS Version
[eg Catalina, 10, 18.04, etc]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions