From 86e26025f486386a958c654d94fc7711bb7b9d86 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 28 Sep 2021 09:56:32 -0400 Subject: [PATCH] Safe navigation --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5c7787f..625d729 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,7 @@ import { getCommit } from "./utils/getCommit"; async function init() { process.on("unhandledRejection", (error: any) => { - console.dir(error.stack); + console.dir(error?.stack); }); await initDb();