1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 09:27:46 +01:00

Improve exception message of UnhandledFutureError

Fixes #380.
This commit is contained in:
Niklas Keller 2022-01-14 20:06:23 +01:00
parent 3285f142af
commit b8da6a0782

View File

@ -9,7 +9,7 @@ final class UnhandledFutureError extends \Error
{
public function __construct(\Throwable $previous)
{
$message = 'Unhandled future error: "' . $previous->getMessage()
$message = 'Unhandled future: ' . $previous::class . ': "' . $previous->getMessage()
. '"; Await the Future with Future::await() before the future is destroyed or use '
. 'Future::ignore() to suppress this exception';