Skip to content

Commit

Permalink
Merge pull request #9134 from lptn/better-shepherd-error-output
Browse files Browse the repository at this point in the history
Enhance error output for shepherd
  • Loading branch information
orklah committed Jan 18, 2023
2 parents a91661a + d524af8 commit 396e7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Plugin/Shepherd.php
Expand Up @@ -132,7 +132,7 @@ public static function afterAnalysis(

fwrite(STDERR, "Shepherd error: server 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:' . PHP_EOL . $response_content);
fwrite(STDERR, "Shepherd response: $response_content\n");
}
}

Expand Down

0 comments on commit 396e7fc

Please sign in to comment.