diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2016-01-29 11:57:25 +0000 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2016-01-29 11:57:25 +0000 |
commit | 2abb173599cd532f62e51c2b966cc3a7350c9ef6 (patch) | |
tree | 95c10f4736714a8e7c6cebbb97d153ffb6b031a7 /lib/public | |
parent | ecf2d178b1c3db3000f4d9c9d65f08ec3890488e (diff) | |
download | nextcloud-server-2abb173599cd532f62e51c2b966cc3a7350c9ef6.tar.gz nextcloud-server-2abb173599cd532f62e51c2b966cc3a7350c9ef6.zip |
Default to STATUS_ERROR in StorageNotAvailableException
Diffstat (limited to 'lib/public')
-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); } |