Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed May 8, 2023
1 parent f0beccf commit 5cd506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/notification-providers/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Telegram extends NotificationProvider {
return okMsg;

} catch (error) {
let msg = (error.response.data.description) ? error.response.data.description : "Error without description";
let msg = (error.response && error.response.data && error.response.data.description) ? error.response.data.description : "Error without description";
throw new Error(msg);
}
}
Expand Down

0 comments on commit 5cd506e

Please sign in to comment.