Skip to content
Snippets Groups Projects
Commit a72ddfdc authored by EricFromCanada's avatar EricFromCanada
Browse files

remove duplicate "Error" in onoe/odie arguments

parent f5e15571
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
......@@ -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:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment