diff options
-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)) { |