mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 18:06:14 +03:00
Minor
This commit is contained in:
parent
f0beccf6bf
commit
5cd506e340
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue