summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-10-07 11:45:13 -0700
committerBart Visscher <bartv@thisnet.nl>2013-10-07 11:45:13 -0700
commit6a93994a0111b06de75eeaea5cda7fe5e8ca3790 (patch)
tree9a8dd0d4c731cf5e6558aca4ef6a27b26035deb4 /lib
parent372a73d43a6db73c58c5065fd8b39acfc5915b26 (diff)
parent8115c38670e78c396334d988d3c5d10021de4648 (diff)
downloadnextcloud-server-6a93994a0111b06de75eeaea5cda7fe5e8ca3790.tar.gz
nextcloud-server-6a93994a0111b06de75eeaea5cda7fe5e8ca3790.zip
Merge pull request #4796 from owncloud/config-no-catch
Remove the exception catch in OC_Config, this should be handled by a higher layer
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/config.php12
1 files changed, 2 insertions, 10 deletions
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);
}
}