aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/traccar/sms/SnsSmsClient.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/sms/SnsSmsClient.java b/src/main/java/org/traccar/sms/SnsSmsClient.java
index 8a3710ec8..cc7d09778 100644
--- a/src/main/java/org/traccar/sms/SnsSmsClient.java
+++ b/src/main/java/org/traccar/sms/SnsSmsClient.java
@@ -41,7 +41,9 @@ public class SnsSmsClient implements SmsManager {
&& Context.getConfig().hasKey(Keys.SMS_AWS_ACCESS)
&& Context.getConfig().hasKey(Keys.SMS_AWS_SECRET)) {
snsClient = awsSNSClient();
- } else { throw new RuntimeException("SNS Not Configured Properly. Please provide valid config."); }
+ } else {
+ throw new RuntimeException("SNS Not Configured Properly. Please provide valid config.");
+ }
}
public AmazonSNSAsync awsSNSClient() {
@@ -61,7 +63,9 @@ public class SnsSmsClient implements SmsManager {
try {
snsClient.publishAsync(new PublishRequest().withMessage(message)
.withPhoneNumber(destAddress).withMessageAttributes(smsAttributes));
- } catch (Exception exception) { LOGGER.warn("SMS send failed", exception); }
+ } catch (Exception exception) {
+ LOGGER.warn("SMS send failed", exception);
+ }
}
@Override