From 326ac86c8c98a23db6d715d85321f6f08355afab Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 11 Dec 2021 19:57:31 -0700 Subject: [PATCH] Better error logging --- includes/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/helpers.js b/includes/helpers.js index 0068c8a..4d1f9f3 100644 --- a/includes/helpers.js +++ b/includes/helpers.js @@ -51,7 +51,7 @@ module.exports = { host.ipv6.includes(`${env.IPV6_NET}:${subnet}:`) )) { console.error( - `Found unmatching IP address subnets for ${ip}: \ + `ERROR! Found unmatching IP address subnets for ${ip}: \ ${found_hosts.map( (host) => [host.ipv4,host.ipv6] )}` ); reject(500) // Check that the ip is "on the list" @@ -62,7 +62,7 @@ module.exports = { // Check that all usernames are the same correct or error out // https://stackoverflow.com/a/35568895 } else if (!found_usernames.every( (v,i,r) => v === r[0] )) { - console.error(`Found unmatching usernames for ${ip}: ${found_usernames.toString()}`) + console.error(`ERROR! Found unmatching usernames for ${ip}: ${found_usernames.toString()}`) reject(500) } else { resolve({