From: Bart Visscher Date: Tue, 10 Sep 2013 06:04:33 +0000 (+0200) Subject: Remove the exception catch, this should be handled by a higher layer X-Git-Tag: v6.0.0alpha2~66^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8115c38670e78c396334d988d3c5d10021de4648;p=nextcloud-server.git Remove the exception catch, this should be handled by a higher layer And is when using index.php as entry point --- diff --git a/lib/private/legacy/config.php b/lib/private/legacy/config.php index 7e498013737..c457979113e 100644 --- a/lib/private/legacy/config.php +++ b/lib/private/legacy/config.php @@ -83,11 +83,7 @@ class OC_Config { * */ public static function setValue($key, $value) { - try { - self::$object->setValue($key, $value); - } catch (\OC\HintException $e) { - \OC_Template::printErrorPage($e->getMessage(), $e->getHint()); - } + self::$object->setValue($key, $value); } /** @@ -98,10 +94,6 @@ class OC_Config { * */ public static function deleteKey($key) { - try { - self::$object->deleteKey($key); - } catch (\OC\HintException $e) { - \OC_Template::printErrorPage($e->getMessage(), $e->getHint()); - } + self::$object->deleteKey($key); } }