diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-01 09:00:14 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-01 09:00:14 +0100 |
commit | 5f4b204a49ca0b8791f3e3fdd8c87f478a143826 (patch) | |
tree | 86a00ef27befbeb1be31ae39d2406eafb3902bb5 /lib/public/files | |
parent | 21e9c6d1d06d449a7523bab8fa9feff2d4ebd647 (diff) | |
parent | 2abb173599cd532f62e51c2b966cc3a7350c9ef6 (diff) | |
download | nextcloud-server-5f4b204a49ca0b8791f3e3fdd8c87f478a143826.tar.gz nextcloud-server-5f4b204a49ca0b8791f3e3fdd8c87f478a143826.zip |
Merge pull request #22012 from owncloud/storagenotavailableexception-code
Default to STATUS_ERROR in StorageNotAvailableException
Diffstat (limited to 'lib/public/files')
-rw-r--r-- | lib/public/files/storagenotavailableexception.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/files/storagenotavailableexception.php b/lib/public/files/storagenotavailableexception.php index 4572a69f047..f9ac79d66ec 100644 --- a/lib/public/files/storagenotavailableexception.php +++ b/lib/public/files/storagenotavailableexception.php @@ -54,7 +54,7 @@ class StorageNotAvailableException extends HintException { * @param \Exception $previous * @since 6.0.0 */ - public function __construct($message = '', $code = 0, \Exception $previous = null) { + public function __construct($message = '', $code = self::STATUS_ERROR, \Exception $previous = null) { $l = \OC::$server->getL10N('core'); parent::__construct($message, $l->t('Storage not available'), $code, $previous); } |