Update server/notification-providers/cellsynt.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
pull/4625/head
Simon Nilsson 1 month ago committed by GitHub
parent c75186166c
commit d5e998789b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -24,7 +24,7 @@ class Cellsynt extends NotificationProvider {
try {
const resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data);
if (resp.data == null ) {
throw new Error("Error: Could not connect to Cellsynt, please try again.");
throw new Error("Could not connect to Cellsynt, please try again.");
} else if (resp.data.includes("Error:")) {
resp.data = resp.data.replaceAll("Error:", "");
throw new Error(resp.data);

Loading…
Cancel
Save