Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Conversation

@dawagner
Copy link
Contributor

This used to be done by libxml2 itself when using the "generic error handler"
but was lost when switching to the "structured error handler".

Unfortunately, we do not have as much context as with the generic handler,
which used to also print the incriminated content and point to the exact
location of the error. I didn't find any easy way to get it.

Signed-off-by: David Wagner david.wagner@intel.com

   

@dawagner dawagner added this to the Version 3 milestone Oct 20, 2015
@dawagner
Copy link
Contributor Author

@krocard Please review. I intend to publish RC3 after this is merged.

@dawagner dawagner force-pushed the better-libxml2-error-messages branch 2 times, most recently from b8cfac8 to 1015c96 Compare October 20, 2015 16:06
This used to be done by libxml2 itself when using the "generic error handler"
but was lost when switching to the "structured error handler".

Unfortunately, we do not have as much context as with the generic handler,
which used to also print the incriminated content and point to the exact
location of the error. I didn't find any easy way to get it.

Signed-off-by: David Wagner <david.wagner@intel.com>
@krocard
Copy link
Contributor

krocard commented Oct 20, 2015

:shipit:

dawagner added a commit that referenced this pull request Oct 20, 2015
Print the file and line number context in libxml2 error messages
@dawagner dawagner merged commit 5c1d873 into intel:master Oct 20, 2015
@dawagner dawagner deleted the better-libxml2-error-messages branch October 20, 2015 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants