Improve error messages with more context and details - #26
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR improves error messages throughout the Git utility codebase by adding more context and specific details to help users better understand and resolve issues.
- Enhanced error messages with specific variable values and context
- Added helpful hints for troubleshooting (e.g., network connectivity, manual commands)
- Improved variable naming in some functions for clarity
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/utils.rs | Enhanced error messages with branch names and troubleshooting hints |
| src/commands/rebase.rs | Added specific branch names and git commands to error messages |
| src/commands/fixup.rs | Improved commit selection error messages and variable naming |
| src/commands/delete_branches.rs | Added context about network connectivity and branch parsing details |
| src/commands/cherry_pick.rs | Enhanced commit selection and parsing error messages |
| src/commands/checkout.rs | Improved branch listing and selection error messages with branch type context |
| src/commands/branch.rs | Added specific branch names to creation error messages |
| src/commands.rs | Enhanced git command execution error messages with actual commands |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Luladjiev
force-pushed
the
improve_error_messaging
branch
from
September 15, 2025 08:17
ca3e30d to
c5f441c
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.