From 8836c57fa4b63268380358df8aada4a4d22fd1a9 Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Sat, 11 Mar 2023 00:24:52 +0800 Subject: [PATCH] * chore(commit.ts): add TODO comment to show proper error messages --- src/commands/commit.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/commit.ts b/src/commands/commit.ts index 84fd457..e791b32 100644 --- a/src/commands/commit.ts +++ b/src/commands/commit.ts @@ -16,6 +16,7 @@ const generateCommitMessageFromGitDiff = async ( commitSpinner.start('Generating the commit message'); const commitMessage = await generateCommitMessageWithChatCompletion(diff); + // TODO: show proper error messages if (typeof commitMessage !== 'string') { const errorMessages = { [GenerateCommitMessageErrorEnum.emptyMessage]: