Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 18, 2024
1 parent a99c71e commit ab74e58
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Command/FixerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,17 +488,19 @@ private function analyse(

if ($e instanceof ProcessCrashedException) {
$message = 'Analysis crashed';
$trace = $e->getMessage();
$traceAsString = $e->getMessage();
$trace = [];
} else {
$message = $e->getMessage();
$trace = $e->getTraceAsString();
$traceAsString = $e->getTraceAsString();
$trace = InternalError::prepareTrace($e);
}
$phpstanFixerEncoder->write(['action' => 'analysisCrash', 'data' => [
'internalErrors' => [new InternalError(
$message,
'running PHPStan Pro worker',
InternalError::prepareTrace($e),
$trace,
$traceAsString,
false,
)],
]]);
Expand Down

0 comments on commit ab74e58

Please sign in to comment.