summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/ftp.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-10-21 16:18:44 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-22 12:42:36 +0200
commit075e8d8e8658913e1c5b8869f3e457fa6db2d847 (patch)
tree580bd57f2d440fdb606b2ba0d9fc67dfd1e76796 /apps/files_external/lib/ftp.php
parenta9aa7841c94f8ea2ed924c6e59ea9119295ae775 (diff)
downloadnextcloud-server-075e8d8e8658913e1c5b8869f3e457fa6db2d847.tar.gz
nextcloud-server-075e8d8e8658913e1c5b8869f3e457fa6db2d847.zip
Lazy initialize external storages
Fixed the following external storages to not connect in the constructor, but do it on-demand when getConnection() is called. - S3 - SWIFT - SFTP
Diffstat (limited to 'apps/files_external/lib/ftp.php')
-rw-r--r--apps/files_external/lib/ftp.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/ftp.php b/apps/files_external/lib/ftp.php
index 2650a94f85e..4a995d21157 100644
--- a/apps/files_external/lib/ftp.php
+++ b/apps/files_external/lib/ftp.php
@@ -39,7 +39,7 @@ class FTP extends \OC\Files\Storage\StreamWrapper{
$this->root .= '/';
}
} else {
- throw new \Exception();
+ throw new \Exception('Creating \OC\Files\Storage\FTP storage failed');
}
}