From f041110b34edf353626d1f2ba0df2cf6a0fa77c1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 25 Feb 2010 16:03:47 +0000 Subject: - Patch #723782 by Berdir: display better exception messages in simpletest. --- modules/simpletest/drupal_web_test_case.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/simpletest') 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)); } /** -- cgit v1.2.3