From cc394e6307007739d12ca67bd4c92531f6f2b562 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 5 Nov 2010 11:03:17 -0600 Subject: [PATCH] Catch error when app has not been activated --- horde/test.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/horde/test.php b/horde/test.php index dde6800ac..39cdea87e 100644 --- a/horde/test.php +++ b/horde/test.php @@ -73,7 +73,11 @@ $app_version = $registry->getVersion($app); /* If we've gotten this far, we should have found enough of Horde to run * tests. Create the testing object. */ if ($app != 'horde') { - $registry->pushApp($app, array('check_perms' => false)); + try { + $registry->pushApp($app, array('check_perms' => false)); + } catch (Exception $e) { + _hordeTestError($e->getMessage()); + } } $classname = ucfirst($app) . '_Test'; if (!class_exists($classname)) { -- 2.11.0