Skip to content

[BUG] ParseTree returns error information twice #168

Closed

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.

Activity

  1. joshfried-aws commented on Jun 12, 2023

    @joshfried-aws
    Contributor

    Hi @sfarazkazmi this has been fixed as part of #368. I am going to go ahead and close this issue.

    Feel free to reopen if you feel the need.

    Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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