-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(git): fix confusing error messages on exit code 128 (#5439)
* fix(git): fix confusing error messages on exit code 128 * refactor(git): extract helper function to examine error messages * refactor(git): inline helper function It's used in the only place an is error-specific. * chore: re-arrange imports * refactor(git): restructure if/else blocks for better readability * refactor(git): extract helper for error explanation * test(git): add unit tests for `explainGitError` * improvement(git): print original Git error on repo ownership issues
- Loading branch information
1 parent
65653b9
commit 2779705
Showing
2 changed files
with
94 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters