From: Michael M Slusarz Date: Fri, 5 Nov 2010 17:03:17 +0000 (-0600) Subject: Catch error when app has not been activated X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cc394e6307007739d12ca67bd4c92531f6f2b562;p=horde.git Catch error when app has not been activated --- 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)) {