Skip to content

Commit

Permalink
PsalmProcess: wrap exception message with missing sprintf (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
przepompownia committed Mar 7, 2024
1 parent 71784a4 commit 5dc22be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Extension/LanguageServerPsalm/Model/PsalmProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public function analyse(string $filename): Promise
}

if ($exitCode !== 0 && $exitCode !== 2) {
throw new RuntimeException(
throw new RuntimeException(sprintf(
'Psalm exited with code "%s": %s',
$exitCode,
yield buffer($process->getStderr())
);
));
}

$stdout = yield buffer($process->getStdout());
Expand Down

0 comments on commit 5dc22be

Please sign in to comment.