Skip to content

Commit

Permalink
additional output in thrown error for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Jan 17, 2024
1 parent 7d28621 commit f855514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion services/app-api/src/handlers/apollo_gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}]`
)
}
}
}
Expand Down

0 comments on commit f855514

Please sign in to comment.