Commit f041110b authored by Dries's avatar Dries
Browse files

- Patch #723782 by Berdir: display better exception messages in simpletest.

parent 7982be71
......@@ -493,7 +493,8 @@ protected function exceptionHandler($exception) {
'line' => $exception->getLine(),
'file' => $exception->getFile(),
$this->error($exception->getMessage(), 'Uncaught exception', _drupal_get_last_caller($backtrace));
require_once DRUPAL_ROOT . '/includes/';
$this->error(t('%type: %message in %function (line %line of %file).', _drupal_decode_exception($exception)), 'Uncaught exception', _drupal_get_last_caller($backtrace));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment