]> git.openstreetmap.org Git - nominatim.git/commitdiff
bdd: be more verbose on HTML parsing error
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 16 Feb 2024 15:40:24 +0000 (16:40 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Mon, 19 Feb 2024 17:39:01 +0000 (18:39 +0100)
test/bdd/steps/steps_api_queries.py

index 3d3b16c76d4a365787413753bb719d96cbf44bf5..aa1b43b8493d387a7323c1fc5ff6b67eb5e7e53e 100644 (file)
@@ -243,7 +243,7 @@ def step_impl(context, fmt):
         try:
             tree = ET.fromstring(context.response.page)
         except Exception as ex:
-            assert False, f"Could not parse page:\n{context.response.page}"
+            assert False, f"Could not parse page: {ex}\n{context.response.page}"
 
         assert tree.tag == 'html'
         body = tree.find('./body')