Merge pull request #4796 from owncloud/config-no-catch
Remove the exception catch in OC_Config, this should be handled by a higher layer
This commit is contained in:
commit
6a93994a01
|
@ -83,11 +83,7 @@ class OC_Config {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function setValue($key, $value) {
|
public static function setValue($key, $value) {
|
||||||
try {
|
|
||||||
self::$object->setValue($key, $value);
|
self::$object->setValue($key, $value);
|
||||||
} catch (\OC\HintException $e) {
|
|
||||||
\OC_Template::printErrorPage($e->getMessage(), $e->getHint());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -98,10 +94,6 @@ class OC_Config {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function deleteKey($key) {
|
public static function deleteKey($key) {
|
||||||
try {
|
|
||||||
self::$object->deleteKey($key);
|
self::$object->deleteKey($key);
|
||||||
} catch (\OC\HintException $e) {
|
|
||||||
\OC_Template::printErrorPage($e->getMessage(), $e->getHint());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue