diff --git a/classes/local/store/s3/client.php b/classes/local/store/s3/client.php index d1d6a389..72bd8931 100644 --- a/classes/local/store/s3/client.php +++ b/classes/local/store/s3/client.php @@ -321,6 +321,9 @@ public function test_connection() { } else { $this->client->headBucket(['Bucket' => $this->bucket]); } + } catch (\Aws\Auth\Exception\UnresolvedAuthSchemeException $e) { + $connection->success = false; + $connection->details = $this->get_exception_details($e); } catch (\Aws\S3\Exception\S3Exception $e) { $connection->success = false; $connection->details = $this->get_exception_details($e);