diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-03-09 15:40:34 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-03-09 15:40:34 +0100 |
commit | 12b219203895d86db0ae6b71bb8c6a724e8323b7 (patch) | |
tree | 58f3dd1a5528f0f0eb251c3bdebfee0efd0e0bb0 /lib | |
parent | 0cc53ee06dafbd3984bbf1d554585a5731b500a9 (diff) | |
download | nextcloud-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.php | 4 |
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()); |