Skip to content

Commit 593f436

Browse files
committed
making log entry more descriptive
1 parent 706dce1 commit 593f436

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

service/src/main/java/uk/nhs/adaptors/gp2gp/common/configuration/AppInitializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public S3Client getS3Client() throws ConfigurationException {
3939
return S3Client.builder().build();
4040
}
4141

42-
throw new ConfigurationException("S3Client cannot be instantiated due to trust store URL misconfiguration");
42+
throw new ConfigurationException("S3Client cannot be instantiated: "
43+
+ "Trust store URL is either not set or does not start with the 's3://' prefix.");
4344
}
4445
}

service/src/test/java/uk/nhs/adaptors/gp2gp/common/configuration/AppInitializerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
class AppInitializerTest {
1111

12-
public static final String EXPECTED_ERROR_MESSAGE = "S3Client cannot be instantiated due to trust store URL misconfiguration";
12+
public static final String EXPECTED_ERROR_MESSAGE = "S3Client cannot be instantiated: "
13+
+ "Trust store URL is either not set or does not start with the 's3://' prefix.";
1314
private AppInitializer appInitializer;
1415
private StorageConnectorConfiguration storageConnectorConfiguration;
1516

0 commit comments

Comments
 (0)