aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/sms
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/sms')
-rw-r--r--src/org/traccar/sms/SmsGatewayClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/sms/SmsGatewayClient.java b/src/org/traccar/sms/SmsGatewayClient.java
index da0b59ec1..ea2df6881 100644
--- a/src/org/traccar/sms/SmsGatewayClient.java
+++ b/src/org/traccar/sms/SmsGatewayClient.java
@@ -60,7 +60,7 @@ public class SmsGatewayClient implements SmsManager {
Response response = getRequestBuilder().post(Entity.json(preparePayload(destAddress, message)));
if (!response.getStatusInfo().equals(Response.Status.OK)) {
String output = response.readEntity(String.class);
- throw new MessageException(new Exception(output));
+ throw new MessageException(output);
}
}