Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make error messages nicer (topgrade-rs#551)
* Remove unhelpful information from errors Before: ``` Git repositories failed: 0: error: cannot pull with rebase: You have unstaged changes. error: Please commit or stash them. 0: Location: src/steps/git.rs:39 Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. Run with RUST_BACKTRACE=full to include source snippets. ``` After: ``` Git repositories failed: 0: Failed to pull /Users/wiggles/.dotfiles 1: error: cannot pull with rebase: You have unstaged changes. error: Please commit or stash them. Location: src/steps/git.rs:39 ``` * Improve git_repos errors This removes the extra blank "0:" line at the end of the error, doesn't print the error message twice, and provides the repo path in the error message.
- Loading branch information