From ec26b38806c9a5650bd9924a228fda3da6ccdd4c Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 30 Sep 2009 14:57:31 +0000 Subject: [PATCH] unittests: NOBUG improve testrss.php failure message to make it easier for people to know to set their proxy. --- lib/simpletest/testrss.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/simpletest/testrss.php b/lib/simpletest/testrss.php index e6609ca8a9..e32b33e47a 100644 --- a/lib/simpletest/testrss.php +++ b/lib/simpletest/testrss.php @@ -36,7 +36,10 @@ class moodlesimplepie_test extends UnitTestCase { $this->assertIsA($feed, 'moodle_simplepie'); - $this->assertFalse($feed->error()); + $this->assertFalse($feed->error(), "Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s"); + if ($feed->error()) { + return; + } $this->assertEqual($feed->get_title(), 'Moodle News'); -- 2.39.5