From 882d5ad728348bc0428134409f60e5e26ec70d02 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 8 Jul 2013 15:10:10 +0200 Subject: [PATCH] added exception messages --- apps/files_external/lib/amazons3.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/lib/amazons3.php b/apps/files_external/lib/amazons3.php index bb0ccb2bee..e2a98ab5a6 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)) {