mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
feat: log body integration test failure (#2151)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user