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/errors.inc';
$this->error(t('%type: %message in %function (line %line of %file).', _drupal_decode_exception($exception)), 'Uncaught exception', _drupal_get_last_caller($backtrace));
}
/**
......
Markdown is supported
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