Merge pull request #22012 from owncloud/storagenotavailableexception-code
Default to STATUS_ERROR in StorageNotAvailableException
This commit is contained in:
commit
5f4b204a49
|
@ -54,7 +54,7 @@ class StorageNotAvailableException extends HintException {
|
||||||
* @param \Exception $previous
|
* @param \Exception $previous
|
||||||
* @since 6.0.0
|
* @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');
|
$l = \OC::$server->getL10N('core');
|
||||||
parent::__construct($message, $l->t('Storage not available'), $code, $previous);
|
parent::__construct($message, $l->t('Storage not available'), $code, $previous);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue