Default to STATUS_ERROR in StorageNotAvailableException

This commit is contained in:
Robin McCorkell 2016-01-29 11:57:25 +00:00
parent ecf2d178b1
commit 2abb173599
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}