Skip to content

Commit

Permalink
Throw error instead of hard exit
Browse files Browse the repository at this point in the history
  • Loading branch information
mallocator committed Nov 21, 2023
1 parent 74930d6 commit bb98f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function initialize(api) {
app.listen({ port: config.port || 4000 }, (err, address) => {
if (err) {
console.error(err)
process.exit(1)
throw new Error(err)
}
console.log(`GraphQL endpoint available at ${address}`)
})
Expand Down

0 comments on commit bb98f50

Please sign in to comment.