Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Feb 1, 2024
1 parent 8469999 commit 4aacf40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/app-api/src/authn/thirdPartyAuthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4aacf40

Please sign in to comment.