From 5cd506e340f4f9a596a6098b30cad9f9c7e05fda Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Mon, 8 May 2023 22:39:32 +0800 Subject: [PATCH] Minor --- server/notification-providers/telegram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/notification-providers/telegram.js b/server/notification-providers/telegram.js index 3c490655db..169bbd3565 100644 --- a/server/notification-providers/telegram.js +++ b/server/notification-providers/telegram.js @@ -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); } }