mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-10 03:19:55 +08:00
Minor
This commit is contained in:
@@ -25,7 +25,7 @@ class Telegram extends NotificationProvider {
|
|||||||
return okMsg;
|
return okMsg;
|
||||||
|
|
||||||
} catch (error) {
|
} 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);
|
throw new Error(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user