WireViz icon indicating copy to clipboard operation
WireViz copied to clipboard

[feature] error reporting line number

Open pjm-tusimple opened this issue 3 years ago • 2 comments

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

pjm-tusimple avatar Dec 07 '22 15:12 pjm-tusimple

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.

kvid avatar Dec 10 '22 21:12 kvid

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.

pjm-tusimple avatar Dec 14 '22 19:12 pjm-tusimple