throw error if present

This commit is contained in:
Alex Holliday committed 2025-09-08 06:42:36 -07:00
1 parent 06f49e24c2
commit 4e78de9da2
1 file changed
+3
@@ -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");
}