diff --git a/Library/Homebrew/cask/cmd/doctor.rb b/Library/Homebrew/cask/cmd/doctor.rb index 8f54d6593d..dc6bead70e 100644 --- a/Library/Homebrew/cask/cmd/doctor.rb +++ b/Library/Homebrew/cask/cmd/doctor.rb @@ -141,7 +141,7 @@ module Cask elsif result.stderr.include? "pkg_resources.DistributionNotFound" add_error "Your Python installation is unable to find xattr." else - add_error "unknown xattr error: #{result.stderr.first}" + add_error "unknown xattr error: #{result.stderr.split("\n").last}" end end