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

Non-descriptive error messages #136

Open
EntnyJill opened this issue Mar 22, 2022 · 0 comments
Open

Non-descriptive error messages #136

EntnyJill opened this issue Mar 22, 2022 · 0 comments

Comments

@EntnyJill
Copy link

We can see non-descriptive error message when some parse error occurs.
For example, for sequence of bytes
00 01 02 03 04 05 06 07 08 09 10 ...
and ksy template

meta:
  id: test_template
  endian: be
seq:
  - id: fields
    type: u1
    repeat: expr
    repeat-expr: 5
  - id: delimiter
    contents:
      - 0xEE

we get error message:

Parse error: undefined
Call stack: undefined ValidationNotEqualError: not equal, expected [238], but got [5]

It would be better to get position of error, hexadecimal representations of expected and actual values, intermediate parsing results in object tree.

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

No branches or pull requests

1 participant