Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(JSON): errors with wrong origin operator #239

Merged
merged 3 commits into from
Mar 28, 2023
Merged

fix(JSON): errors with wrong origin operator #239

merged 3 commits into from
Mar 28, 2023

Conversation

maxatome
Copy link
Owner

In error reports, the origin operator was sometimes missing and sometimes wrong when using JSON, SubJSONOf and SuperJSONOf operators, as in:

    [under operator tdJSONUnmarshaler.resolveOp.func1 at lex.go:156]

Now the location of internal operators, as the ones used by JSON operators, cannot appear in error reports anymore and so do not mask the location of user visible operators.

@coveralls
Copy link

coveralls commented Mar 26, 2023

Coverage Status

Coverage: 99.863% (+0.0001%) from 99.863% when pulling 30abd09 on json-errors into 77299c9 on master.

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
In error reports, the origin operator was sometimes missing and
sometimes wrong when using JSON, SubJSONOf and SuperJSONOf operators,
as in:

    [under operator tdJSONUnmarshaler.resolveOp.func1 at lex.go:156]

Now the location of internal operators, as the ones used by JSON
operators, cannot appear in error reports anymore and so do not mask
the location of user visible operators.

Signed-off-by: Maxime Soulé <btik-git@scoubidou.com>
@maxatome maxatome merged commit ccf66a2 into master Mar 28, 2023
@maxatome maxatome deleted the json-errors branch March 28, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants