diff options
author | Jesús Macias <jmacias@solidgear.es> | 2015-11-25 18:04:31 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-03 09:58:30 +0100 |
commit | 9d1ec02c5ac72879a2b9b2e04917282c370526f0 (patch) | |
tree | 1cb89b9cda32cdc15e380eb0707aac0b84ee88ff /apps/files_external/controller | |
parent | 332c6748f9a96c8d718577605e6c061fdd8ba939 (diff) | |
download | nextcloud-server-9d1ec02c5ac72879a2b9b2e04917282c370526f0.tar.gz nextcloud-server-9d1ec02c5ac72879a2b9b2e04917282c370526f0.zip |
Change exception catch order
Diffstat (limited to 'apps/files_external/controller')
-rw-r--r-- | apps/files_external/controller/storagescontroller.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_external/controller/storagescontroller.php b/apps/files_external/controller/storagescontroller.php index ddd7fe6df16..3f781ef655d 100644 --- a/apps/files_external/controller/storagescontroller.php +++ b/apps/files_external/controller/storagescontroller.php @@ -241,11 +241,6 @@ abstract class StoragesController extends Controller { \OC_Mount_Config::STATUS_INDETERMINATE, $this->l10n->t('Insufficient data: %s', [$e->getMessage()]) ); - } catch (StorageNotAvailableException $e) { - $storage->setStatus( - \OC_Mount_Config::STATUS_ERROR, - $this->l10n->t('%s', [$e->getMessage()]) - ); } catch (ExtStorageBadConfigException $e) { $storage->setStatus( $e->getCode(), @@ -266,6 +261,11 @@ abstract class StoragesController extends Controller { $e->getCode(), $this->l10n->t('%s', [$e->getMessage()]) ); + } catch (StorageNotAvailableException $e) { + $storage->setStatus( + \OC_Mount_Config::STATUS_ERROR, + $this->l10n->t('%s', [$e->getMessage()]) + ); } catch (\Exception $e) { // FIXME: convert storage exceptions to StorageNotAvailableException $storage->setStatus( |