Skip to content

Commit

Permalink
More useful behaviour of "some jobs remaining"
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 2, 2020
1 parent 0e42941 commit 6c61e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Parallel/ParallelAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ public function analyse(
$loop->run();

if (count($jobs) > 0) {
throw new \PHPStan\ShouldNotHappenException('Some jobs remaining');
$internalErrors[] = 'Some parallel worker jobs have not finished';
$internalErrorsCount++;
}

return new AnalyserResult(
Expand Down

0 comments on commit 6c61e49

Please sign in to comment.