Skip to content

Commit

Permalink
Determine skip lint process failure by status code instead of stderr …
Browse files Browse the repository at this point in the history
…content
  • Loading branch information
jankonas authored and grogy committed Feb 14, 2021
1 parent f2262ae commit 3b0278f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ParallelLint.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function lint(array $files)
if (!empty($waiting)) {
$skipLintProcess->waitForFinish();

if ($skipLintProcess->getErrorOutput()) {
if ($skipLintProcess->isFail()) {
$message = "Error in skip-linting.php process\nError output: {$skipLintProcess->getErrorOutput()}";
throw new \Exception($message);
}
Expand Down

0 comments on commit 3b0278f

Please sign in to comment.