* docs(README.md): add reminder to add payment details to OpenAI API key

* docs(api.ts): update error message to remind user to add payment details to OpenAI API key
* refactor(cli.ts): remove unused import
* refactor(config.ts): update error message to use outro instead of throwing an error and exit the process

* chore(generateCommitMessageFromGitDiff.ts): add console.log for error debugging
This commit is contained in:
di-sukharev
2023-03-11 13:23:46 +08:00
parent 8fe382a072
commit b35a393152
5 changed files with 8 additions and 17 deletions
+1
View File
@@ -105,6 +105,7 @@ export const generateCommitMessageWithChatCompletion = async (
return commitMessage;
}
} catch (error) {
console.log({ error });
return { error: GenerateCommitMessageErrorEnum.internalError };
}
};