Merge pull request #22012 from owncloud/storagenotavailableexception-code
Default to STATUS_ERROR in StorageNotAvailableException
This commit is contained in:
commit
5f4b204a49
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue