]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove the exception catch, this should be handled by a higher layer
authorBart Visscher <bartv@thisnet.nl>
Tue, 10 Sep 2013 06:04:33 +0000 (08:04 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Sun, 6 Oct 2013 22:09:25 +0000 (00:09 +0200)
And is when using index.php as entry point

lib/private/legacy/config.php

index 7e4980137377baadc8959bd1fe2a8326a753b752..c457979113e9ccd25d13f11560520273b9e0444f 100644 (file)
@@ -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);
        }
 }