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:
commit
942b3b619b
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user