From f8555146b9c8a00b639455b2f1a74d8c6cb65db9 Mon Sep 17 00:00:00 2001 From: pearl-truss Date: Wed, 17 Jan 2024 11:14:31 -0500 Subject: [PATCH] additional output in thrown error for testing --- services/app-api/src/handlers/apollo_gql.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/app-api/src/handlers/apollo_gql.ts b/services/app-api/src/handlers/apollo_gql.ts index b40535e2e1..3cffa41afe 100644 --- a/services/app-api/src/handlers/apollo_gql.ts +++ b/services/app-api/src/handlers/apollo_gql.ts @@ -118,7 +118,9 @@ function contextForRequestForFetcher(userFetcher: userFromAuthProvider): ({ throw new Error('Log: placing user in gql context failed') } } else { - throw new Error('Log: no AuthProvider from an internal API user') + throw new Error( + `Log: no AuthProvider from an internal API user. [Testing only, path: ${event.requestContext.path}]` + ) } } }