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

[feature] error reporting line number #297

Open
pjm-tusimple opened this issue Dec 7, 2022 · 2 comments
Open

[feature] error reporting line number #297

pjm-tusimple opened this issue Dec 7, 2022 · 2 comments

Comments

@pjm-tusimple
Copy link

is it possible for the errors to throw a line in the yaml file? Knowing where the exception was thrown will help a lot.

@kvid
Copy link
Collaborator

kvid commented Dec 10, 2022

As far as I know, pyyaml does not support line numbers out of the box, but it might be possible via subclassing. However, an easier approach, is to specify node name and other context to locate the root cause, similar to suggestions in #207.

@pjm-tusimple
Copy link
Author

As far as I know, pyyaml does not support line numbers out of the box, but it might be possible via subclassing. However, an easier approach, is to specify node name and other context to locate the root cause, similar to suggestions in #207.

Yes, it does look similar. Thanks for pointing that out.

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

2 participants