Skip to content

Commit 3b0278f

Browse files
jankonasgrogy
authored andcommitted
Determine skip lint process failure by status code instead of stderr content
1 parent f2262ae commit 3b0278f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParallelLint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function lint(array $files)
115115
if (!empty($waiting)) {
116116
$skipLintProcess->waitForFinish();
117117

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

0 commit comments

Comments
 (0)