1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

io: Always forward IO errors to global handler

The HTTP module raises errors without context. This won't be fixed,
so send them to the global error handler.
This commit is contained in:
Nick Wellnhofer
2023-12-29 00:00:21 +01:00
parent a73483ed41
commit e45a4d7115
3 changed files with 29 additions and 16 deletions

View File

@@ -99,6 +99,7 @@ libxml2.registerInputCallback(my_input_cb)
run_test(desc="Loading entity with custom callback",
docpath=startURL, catalog=None,
exp_status="loaded", exp_err=[
( 3, 'failed to load "http://example.com/dtds/sample.dtd": Attempt to load network entity\n'),
( -1, "Attempt to load network entity http://example.com/dtds/sample.dtd"),
( 4, "Entity 'sample.entity' not defined\n")
])