mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-02-18 07:19:15 -06:00
throw error if present
This commit is contained in:
@@ -75,6 +75,9 @@ class NetworkService {
|
||||
const { response, responseTime, error } = await this.timeRequest(() => this.ping.promise.probe(monitor.url));
|
||||
|
||||
if (!response) {
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
throw new Error("Ping failed - no result returned");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user