]> source.dussan.org Git - nextcloud-server.git/commitdiff
added exception messages
authorChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:10:10 +0000 (15:10 +0200)
committerChristian Berendt <berendt@b1-systems.de>
Mon, 8 Jul 2013 13:10:10 +0000 (15:10 +0200)
apps/files_external/lib/amazons3.php

index bb0ccb2beebd90bc377a8ef7c14b4ad864e7313f..e2a98ab5a61c8eec84792e3dd234e304d095d7c3 100644 (file)
@@ -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)) {