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

Use machine-readable error log #14

Open
valery1707 opened this issue Jan 14, 2019 · 0 comments
Open

Use machine-readable error log #14

valery1707 opened this issue Jan 14, 2019 · 0 comments

Comments

@valery1707
Copy link
Owner

As described in kaitai-io/kaitai_struct#509 (comment), using key --ksc-json-output will produce more detailed output.

DemoKSY:

meta:
  id: demo
  file-extension: demo
  endian: le
seq:
  - id: header
    type: header
types:
  header:
    seq:
      - id: Magic
        contents: 'DEMO'

Human: /types/header/seq/0/id: invalid attribute ID: 'Magic', expected /^[a-z][a-z0-9_]*$/
Machine (formatted):

{
  "src\\it\\it-source-failed\\src\\main\\resources\\kaitai\\demo.ksy": {
    "errors": [
      {
        "file": "(main)",
        "path": ["types", "header", "seq", "0", "id"],
        "message": "invalid attribute ID: 'Magic', expected /^[a-z][a-z0-9_]*$/"
      }
    ]
  }
}
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