mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-02 04:21:55 +03:00
error: Refactor error reporting
Introduce xmlStrVASPrintf, trying to handle buggy snprintf implementations. Introduce xmlSetError to set errors atomically. Introduce xmlUpdateError to set an error, fixing up node, file and line. Introduce helper function xmlRaiseMemoryError. Make legacy error handlers call xmlReportError, avoiding checks in xmlVRaiseError. Remove fragile support for getting file and line info from XInclude nodes.
This commit is contained in:
@ -99,7 +99,7 @@ libxml2.registerInputCallback(my_input_cb)
|
||||
run_test(desc="Loading entity with custom callback",
|
||||
docpath=startURL, catalog=None,
|
||||
exp_status="loaded", exp_err=[
|
||||
(-1, "Attempt to load network entity http://example.com/dtds/sample.dtd"),
|
||||
( 3, "Attempt to load network entity http://example.com/dtds/sample.dtd"),
|
||||
( 4, "Entity 'sample.entity' not defined\n")
|
||||
])
|
||||
|
||||
|
Reference in New Issue
Block a user