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

Add label to load function #26

Closed
crdoconnor opened this issue Jul 24, 2017 · 1 comment · Fixed by gjcarneiro/yacron#9
Closed

Add label to load function #26

crdoconnor opened this issue Jul 24, 2017 · 1 comment · Fixed by gjcarneiro/yacron#9

Comments

@crdoconnor
Copy link
Owner

Feature requested in gjcarneiro/yacron#4

Example:

try:
    doc = strictyaml.load(data, CONFIG_SCHEMA, label=path).data
except YAMLValidationError as ex:
    print(ex)

strictyaml.exceptions.YAMLValidationError: while parsing a mapping
unexpected key not in schema 'killTimeoutx'
  in "/path/to/whatever.yaml", line 73, column 1:
      killTimeoutx: '0.5'
    ^ (line: 73)
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 a pull request may close this issue.

2 participants