Skip to content

Commit e5a3d83

Browse files
committed
fix: cleaner await for sentry
Signed-off-by: Sam Gammon <[email protected]>
1 parent 73090e2 commit e5a3d83

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/diagnostics.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,5 @@ export async function error(err: Error | unknown, fatal = true): Promise<void> {
216216
* Exit hook for making sure Sentry finishes reporting.
217217
*/
218218
export async function onExit(): Promise<void> {
219-
Sentry.close(2000).then(function () {
220-
process.exit()
221-
})
219+
await Sentry.close(2000)
222220
}

0 commit comments

Comments
 (0)