Skip to content

Commit 21ecd91

Browse files
fix: update error parameter name in formatError function for clarity
1 parent 4f8566d commit 21ecd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/apollo-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async function createApolloServer() {
125125
plugins,
126126
// Error masking for production
127127
formatError: securityConfig.maskErrors
128-
? (formattedError: any, error: any) => {
128+
? (formattedError: any, _error: any) => {
129129
// Preserve user-facing errors with specific codes
130130
const code = formattedError?.extensions?.code
131131
const userFacingCodes = [

0 commit comments

Comments
 (0)