feat: log body integration test failure (#2151)

This commit is contained in:
Manuel
2025-01-27 21:06:27 +01:00
committed by GitHub
parent 93dc3ae97e
commit 5c8d7fcc15

View File

@@ -91,7 +91,8 @@ export abstract class Integration {
});
if (response.status >= 400) {
logger.error(`Failed to test connection with status code ${response.status}`);
const body = await response.text();
logger.error(`Failed to test connection with status code ${response.status}. Body: '${body}'`);
throwErrorByStatusCode(response.status);
}