* 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
+4 -1
View File
@@ -24,7 +24,10 @@ const validateConfig = (
validationMessage: string
) => {
if (!condition) {
throw new Error(`Unsupported config key ${key}: ${validationMessage}`);
outro(
`${chalk.red('✖')} Unsupported config key ${key}: ${validationMessage}`
);
process.exit(1);
}
};