Skip to content

Commit

Permalink
uninstall: better message when dependents remain
Browse files Browse the repository at this point in the history
Suggested by @MikeMcQuaid
  • Loading branch information
alyssais committed Oct 25, 2016
1 parent 6f0aabe commit e41c4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/uninstall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def uninstall
dependants_output = dependants.map { |k| "#{k.name} #{k.version}" }.join(", ")
conjugation = dependants.count == 1 ? "is" : "are"
ofail "Refusing to uninstall #{keg} because it is required by #{dependants_output}, which #{conjugation} currently installed."
puts "Remove it anyway with `brew uninstall --force #{keg.name}`."
puts "You can override this and force removal with `brew uninstall --force #{keg.name}`."
next
end

Expand Down

0 comments on commit e41c4e5

Please sign in to comment.