Fix: Improve error message on timeout (#4054)

* Fix: Improve error message on timeout

* Chore: Format
pull/4084/head
Nelson Chan 1 year ago committed by GitHub
parent c1aaad0d85
commit 33ce0ef02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -938,7 +938,11 @@ class Monitor extends BeanModel {
} catch (error) { } catch (error) {
if (error?.name === "CanceledError") {
bean.msg = `timeout by AbortSignal (${this.timeout}s)`;
} else {
bean.msg = error.message; bean.msg = error.message;
}
// If UP come in here, it must be upside down mode // If UP come in here, it must be upside down mode
// Just reset the retries // Just reset the retries

Loading…
Cancel
Save