diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-09 15:40:34 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-10 08:57:29 +0100 |
commit | f3743685685cce57d385b92b363ece0520e4f823 (patch) | |
tree | e17e93438ac859d7aca98a113c990b87effd10ca /lib/base.php | |
parent | 4030b82c97d1be09a6f0e5867ae55366f0da7e8c (diff) | |
download | nextcloud-server-f3743685685cce57d385b92b363ece0520e4f823.tar.gz nextcloud-server-f3743685685cce57d385b92b363ece0520e4f823.zip |
Do not set response status in CLI in case of error
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index b462a49fc9b..a315ad13a04 100644 --- a/lib/base.php +++ b/lib/base.php @@ -509,7 +509,9 @@ class OC { require_once $vendorAutoLoad; } catch (\RuntimeException $e) { - OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); + if (!self::$CLI) { + OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); + } // we can't use the template error page here, because this needs the // DI container which isn't available yet print($e->getMessage()); |