throw error if present

This commit is contained in:
Alex Holliday
2025-09-08 06:42:36 -07:00
parent 06f49e24c2
commit 4e78de9da2

View File

@@ -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");
}