mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-13 08:02:35 +02:00
add more detailed msg for axios
This commit is contained in:
parent
9f0c66d775
commit
8c2a2a4834
1 changed files with 5 additions and 1 deletions
|
@ -361,7 +361,11 @@ class Monitor extends BeanModel {
|
|||
|
||||
} catch (error) {
|
||||
|
||||
bean.msg = error.message;
|
||||
if (axios.isAxiosError(error)) {
|
||||
bean.msg = JSON.stringify(error.response.data)
|
||||
} else {
|
||||
bean.msg = error.message;
|
||||
}
|
||||
|
||||
// If UP come in here, it must be upside down mode
|
||||
// Just reset the retries
|
||||
|
|
Loading…
Add table
Reference in a new issue