* chore(commit.ts): add TODO comment to show proper error messages

This commit is contained in:
di-sukharev
2023-03-11 00:24:52 +08:00
parent 4b523e5782
commit 8836c57fa4

View File

@@ -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]: