diff options
author | Jesús Macias <jmacias@solidgear.es> | 2015-12-03 12:28:52 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-04 16:33:08 +0100 |
commit | 8fa96435b0bda96a8e7082928d0ce0b2d54383aa (patch) | |
tree | aa654edc43aa722f2d921d7fce906587d75bbc06 /apps/files_external/controller/storagescontroller.php | |
parent | 089b60cd255ecfc7b25c2f5b36179c2bdc46bcf6 (diff) | |
download | nextcloud-server-8fa96435b0bda96a8e7082928d0ce0b2d54383aa.tar.gz nextcloud-server-8fa96435b0bda96a8e7082928d0ce0b2d54383aa.zip |
Add credentials dialog for user provided auth
Diffstat (limited to 'apps/files_external/controller/storagescontroller.php')
-rw-r--r-- | apps/files_external/controller/storagescontroller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/controller/storagescontroller.php b/apps/files_external/controller/storagescontroller.php index db1cdeb23b9..65ceba21454 100644 --- a/apps/files_external/controller/storagescontroller.php +++ b/apps/files_external/controller/storagescontroller.php @@ -255,8 +255,9 @@ abstract class StoragesController extends Controller { ) ); } catch (InsufficientDataForMeaningfulAnswerException $e) { + $status = $e->getCode() ? $e->getCode() : StorageNotAvailableException::STATUS_INDETERMINATE; $storage->setStatus( - StorageNotAvailableException::STATUS_INDETERMINATE, + $status, $this->l10n->t('Insufficient data: %s', [$e->getMessage()]) ); } catch (StorageNotAvailableException $e) { |