From 4aacf40ce74aff9153f5378b702cb9e9f2afd960 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Thu, 1 Feb 2024 11:40:08 -0500 Subject: [PATCH] better error message --- services/app-api/src/authn/thirdPartyAuthn.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/app-api/src/authn/thirdPartyAuthn.ts b/services/app-api/src/authn/thirdPartyAuthn.ts index 5025a71618..d46b1e467d 100644 --- a/services/app-api/src/authn/thirdPartyAuthn.ts +++ b/services/app-api/src/authn/thirdPartyAuthn.ts @@ -27,7 +27,9 @@ export async function userFromThirdPartyAuthorizer( try { const ipAddressIsValid = allowedIpAddresses.includes(ipAddress) if (!ipAddressIsValid) { - const errMsg = new Error('IP address is not in the allowed list') + const errMsg = new Error( + `IP address: ${ipAddress} is not in the allowed list` + ) return err(errMsg) } // Lookup user from postgres