From 739fb187d9b971c1ac63c87874dc25e9cb798eab Mon Sep 17 00:00:00 2001 From: Adam Ahmed Date: Thu, 8 Feb 2024 17:28:28 +0000 Subject: [PATCH] Print error message when validation fails --- .../androidx/build/gradle/s3buildcache/S3StorageService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3buildcache/src/main/kotlin/androidx/build/gradle/s3buildcache/S3StorageService.kt b/s3buildcache/src/main/kotlin/androidx/build/gradle/s3buildcache/S3StorageService.kt index 365fc3b..46d9530 100644 --- a/s3buildcache/src/main/kotlin/androidx/build/gradle/s3buildcache/S3StorageService.kt +++ b/s3buildcache/src/main/kotlin/androidx/build/gradle/s3buildcache/S3StorageService.kt @@ -106,7 +106,7 @@ class S3StorageService( throw Exception("Bucket $bucketName under project $region cannot be found or is not accessible using the provided credentials") } } catch (e: Exception) { - logger.warn("Couldn't validate S3 client config. This may be due to a connection error") + logger.warn("Couldn't validate S3 client config: ${e.message}") } }