update message format

This commit is contained in:
ericchanky 2021-11-28 21:07:18 +08:00 committed by GitHub
parent 80f4a98492
commit 5f790aac26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ class Monitor extends BeanModel {
} catch (error) {
if (axios.isAxiosError(error) && error.response) {
bean.msg = `${error.message}, ${JSON.stringify(error.response.data)}`;
bean.msg = `Message: ${error.message}. Response: ${JSON.stringify(error.response.data)}`;
} else {
bean.msg = error.message;
}