Add error message if region is null or empty during creating S3PinotFS
@@ -92,7 +92,7 @@ public class S3PinotFS extends PinotFS {
@Override
public void init(PinotConfiguration config) {
- Preconditions.checkArgument(!isNullOrEmpty(config.getProperty(REGION)));
+ Preconditions.checkArgument(!isNullOrEmpty(config.getProperty(REGION)), "Region can't be null or empty");
String region = config.getProperty(REGION);
_disableAcl = config.getProperty(DISABLE_ACL_CONFIG_KEY, DEFAULT_DISABLE_ACL);
String serverSideEncryption = config.getProperty(SERVER_SIDE_ENCRYPTION_CONFIG_KEY);
