Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 270b520

Browse files
author
tkostuch
committed
add default values
1 parent 817d5ec commit 270b520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ app.use('/graphql', graphqlExpress(req => ({
7272
app.use('/graphiql', graphiqlExpress({ endpointURL: '/graphql' }));
7373

7474
app.use((err, req, res, next) => {
75-
const { statusCode, message, stack } = err;
75+
const { statusCode, message = '', stack = '' } = err;
7676
const stackTrace = stack
7777
.split(/\r?\n/)
7878
.map(string => string.trim())

0 commit comments

Comments
 (0)