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