summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-09 15:40:34 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-09 15:40:34 +0100
commit12b219203895d86db0ae6b71bb8c6a724e8323b7 (patch)
tree58f3dd1a5528f0f0eb251c3bdebfee0efd0e0bb0 /lib
parent0cc53ee06dafbd3984bbf1d554585a5731b500a9 (diff)
downloadnextcloud-server-12b219203895d86db0ae6b71bb8c6a724e8323b7.tar.gz
nextcloud-server-12b219203895d86db0ae6b71bb8c6a724e8323b7.zip
Do not set response status in CLI in case of error
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 9db4a482f23..70498f31567 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());