summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/simpletest/drupal_web_test_case.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index b8bdb38b2..befb5155e 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -493,7 +493,8 @@ abstract class DrupalTestCase {
'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));
}
/**