From 59b93f11e8600d5224359f4d05619c0f56aef1e6 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Tue, 16 Dec 2025 23:13:48 +0100 Subject: [PATCH] rest: print also HTTP response reason in case of an error --- test/functional/interface_rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/interface_rest.py b/test/functional/interface_rest.py index 2e9617d0c20..f27921692df 100755 --- a/test/functional/interface_rest.py +++ b/test/functional/interface_rest.py @@ -84,7 +84,7 @@ class RESTTest (BitcoinTestFramework): conn.request('POST', rest_uri, body) resp = conn.getresponse() - assert resp.status == status, f"Expected: {status}, Got: {resp.status} - Response: {str(resp.read())}" + assert resp.status == status, f"Expected: {status}, Got: {resp.status} ({resp.reason}) - Response: {str(resp.read())}" if ret_type == RetType.OBJ: return resp