mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-06 01:39:38 -06:00
Merge branch 'develop' into fix/install-ping
This commit is contained in:
@@ -5,7 +5,7 @@ import { execSync } from "child_process";
|
||||
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), "");
|
||||
let version = "3.1.5";
|
||||
let version = "3.1.6";
|
||||
|
||||
return {
|
||||
base: "/",
|
||||
|
||||
@@ -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