Commit 682eccc
committed
fix(commit_commands): handle missing API token error gracefully
This commit introduces an error handling mechanism in the commit_code function of commit_commands.py. It adds a check to ensure that if neither an LLM model nor an API token is provided, an error message is printed using the print_error utility. This change improves user experience by providing clear feedback when required parameters are missing, thus preventing potential confusion during the commit process. The addition of this check enhances the robustness of the code by ensuring that users are informed of the necessary prerequisites for successful execution.1 parent 546aac1 commit 682eccc
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments