* chore(api.ts): add error handling for openAI api error

* chore(generateCommitMessageFromGitDiff.ts): remove console.log statement
This commit is contained in:
di-sukharev
2023-03-11 13:24:02 +08:00
parent b35a393152
commit 31357132e4
2 changed files with 19 additions and 4 deletions
-1
View File
@@ -105,7 +105,6 @@ export const generateCommitMessageWithChatCompletion = async (
return commitMessage;
}
} catch (error) {
console.log({ error });
return { error: GenerateCommitMessageErrorEnum.internalError };
}
};