Added exception class and message to the error string.
parent
f626ccbcee
commit
f8b2f203a1
|
@ -94,7 +94,11 @@ class EventDispatcher
|
||||||
try {
|
try {
|
||||||
$className::$methodName($event);
|
$className::$methodName($event);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
throw new \RuntimeException("'{$callable}' terminated with an exception.");
|
$message = "%s terminated with an exception.\n[%s] %s";
|
||||||
|
throw new \RuntimeException(sprintf($message,
|
||||||
|
$callable,
|
||||||
|
get_class($e),
|
||||||
|
$e->getMessage()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue