diff options
author | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 15:10:10 +0200 |
---|---|---|
committer | Christian Berendt <berendt@b1-systems.de> | 2013-07-08 15:10:10 +0200 |
commit | 882d5ad728348bc0428134409f60e5e26ec70d02 (patch) | |
tree | b1d62e8320e66c8ea7a07d7d28b0f26b19792d2f /apps/files_external | |
parent | 8c9e6db1b10c8dac559d3eaec0952e9b733dc7fe (diff) | |
download | nextcloud-server-882d5ad728348bc0428134409f60e5e26ec70d02.tar.gz nextcloud-server-882d5ad728348bc0428134409f60e5e26ec70d02.zip |
added exception messages
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/amazons3.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index bb0ccb2beeb..e2a98ab5a61 100644 --- a/apps/files_external/lib/amazons3.php +++ b/apps/files_external/lib/amazons3.php @@ -49,7 +49,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { public function __construct($params) { if ( ! isset($params['key']) || ! isset($params['secret']) || ! isset($params['bucket'])) { - throw new \Exception(); + throw new \Exception("Access Key, Secret and Bucket have to be configured."); } $this->id = 'amazon::' . $params['key'] . md5($params['secret']); @@ -76,7 +76,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { } if (! $this->connection->isValidBucketName($this->bucket)) { - throw new \Exception(); + throw new \Exception("The configured bucket name is invalid."); } if ( ! $this->connection->doesBucketExist($this->bucket)) { |