remove duplicate "Error" in onoe/odie arguments

This commit is contained in:
EricFromCanada 2020-07-06 15:28:50 -04:00
parent f5e1557154
commit a72ddfdc67
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ odie() {
}
safe_cd() {
cd "$@" >/dev/null || odie "Error: failed to cd to $*!"
cd "$@" >/dev/null || odie "Failed to cd to $*!"
}
brew() {

View File

@ -220,7 +220,7 @@ class Migrator
rescue Interrupt
ignore_interrupts { backup_oldname }
rescue Exception => e # rubocop:disable Lint/RescueException
onoe "Error occurred while migrating."
onoe "The migration did not complete successfully."
puts e
puts e.backtrace if debug?
puts "Backing up..."
@ -314,14 +314,14 @@ class Migrator
begin
new_keg.link(overwrite: true, verbose: verbose?)
rescue Keg::ConflictError => e
onoe "Error while executing `brew link` step on #{newname}"
onoe "The `brew link` step did not complete successfully."
puts e
puts
puts "Possible conflicting files are:"
new_keg.link(dry_run: true, overwrite: true, verbose: verbose?)
raise
rescue Keg::LinkError => e
onoe "Error while linking"
onoe "The `brew link` step did not complete successfully."
puts e
puts
puts "You can try again using:"