Remove the exception catch, this should be handled by a higher layer

And is when using index.php as entry point
This commit is contained in:
Bart Visscher 2013-09-10 08:04:33 +02:00 committed by Morris Jobke
parent 1537410a31
commit 8115c38670

View 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);
}
}