From 68dbf76bbc9802afe569f4533c0b65ea179196ea Mon Sep 17 00:00:00 2001 From: Michael Currin <18750745+MichaelCurrin@users.noreply.github.com> Date: Sun, 10 Oct 2021 11:07:48 +0200 Subject: [PATCH] fix: update commitTemplate.ts --- src/git/commitTemplate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git/commitTemplate.ts b/src/git/commitTemplate.ts index 29961138..eeebba92 100644 --- a/src/git/commitTemplate.ts +++ b/src/git/commitTemplate.ts @@ -76,7 +76,7 @@ function _readFile(filePath: string) { try { value = fs.readFileSync(p, "utf-8"); - } catch (err) { + } catch (err: any) { console.error(`Could not find template file: ${p}. ${err.toString()}`); return null;