1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Display $endpoint on error message (simplify debugging)

This commit is contained in:
Alies Lapatsin 2023-02-21 10:59:31 +01:00
parent 6ba9b1bb17
commit b78472c752

View File

@ -164,7 +164,7 @@ final class Shepherd implements AfterAnalysisInterface
return;
}
fwrite(STDERR, "Shepherd error: server responded with $response_status_code HTTP status code.\n");
fwrite(STDERR, "Shepherd error: $endpoint endpoint responded with $response_status_code HTTP status code.\n");
$response_content = is_string($curl_result) ? strip_tags($curl_result) : 'n/a';
fwrite(STDERR, "Shepherd response: $response_content\n");
}