1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00

Merge pull request #6522 from MorrisJobke/fix/show-file-and-line-in-exception-message

Show file and line in case of an exception in a forked worker
This commit is contained in:
orklah 2021-10-04 09:19:38 +02:00 committed by GitHub
commit 942b3b619b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,8 +219,10 @@ class Pool
// This can happen when developing Psalm from source without running `composer update`,
// or because of rare bugs in Psalm.
$process_done_message = new ForkProcessErrorMessage(
get_class($t) . " " . $t->getMessage()
. "\nStack trace in the forked worker:\n". $t->getTraceAsString()
get_class($t) . ' ' . $t->getMessage() . "\n" .
"Emitted in " . $t->getFile() . ":" . $t->getLine() . "\n" .
"Stack trace in the forked worker:\n" .
$t->getTraceAsString()
);
}