Skip to content

Commit 59a5452

Browse files
committed
Fix typings in service.index
Only handle errors if they are actually instances of Error. Otherwise the operations thereafters wouldn't make any sense
1 parent 717cbf0 commit 59a5452

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/service/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export const startApp = () => {
1717
startWorker(serviceJSON).listen(HTTP_SERVER_PORT)
1818
}
1919
} catch (err) {
20+
if (!(err instanceof Error)) {
21+
throw err
22+
}
2023
logOnceToDevConsole(err.stack || err.message, LogLevel.Error)
2124
process.exit(2)
2225
}

0 commit comments

Comments
 (0)