summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-25 16:03:47 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-25 16:03:47 +0000
commitf041110b34edf353626d1f2ba0df2cf6a0fa77c1 (patch)
tree3bb19616c11d8385df38236313f155e8dff2a4c3
parent7982be718e01eb167014567a1d8fca8a6d1c08ca (diff)
downloadbrdo-f041110b34edf353626d1f2ba0df2cf6a0fa77c1.tar.gz
brdo-f041110b34edf353626d1f2ba0df2cf6a0fa77c1.tar.bz2
- Patch #723782 by Berdir: display better exception messages in simpletest.
-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));
}
/**