From 6ac54f297f0a45b076f36d39f9e36f3adcb951a7 Mon Sep 17 00:00:00 2001 From: Naren Date: Mon, 17 Oct 2016 15:28:40 -0500 Subject: remove empty line and concatenate newline to e.message in cli.rb --- Library/Homebrew/cask/lib/hbc/cli.rb | 2 +- Library/Homebrew/cask/lib/hbc/utils.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cask/lib/hbc/cli.rb b/Library/Homebrew/cask/lib/hbc/cli.rb index 2173a52d0..ad8c02aab 100644 --- a/Library/Homebrew/cask/lib/hbc/cli.rb +++ b/Library/Homebrew/cask/lib/hbc/cli.rb @@ -152,7 +152,7 @@ module Hbc onoe msg exit 1 rescue StandardError, ScriptError, NoMemoryError => e - msg = e.message + msg = "#{e.message}\n" msg << Utils.error_message_with_suggestions msg << e.backtrace.join("\n") onoe msg diff --git a/Library/Homebrew/cask/lib/hbc/utils.rb b/Library/Homebrew/cask/lib/hbc/utils.rb index ef4afa05b..36679aa39 100644 --- a/Library/Homebrew/cask/lib/hbc/utils.rb +++ b/Library/Homebrew/cask/lib/hbc/utils.rb @@ -145,8 +145,7 @@ module Hbc def self.error_message_with_suggestions <<-EOS.undent - - Try following the instuctions here: + Try following the instuctions here: #{Formatter.url(PREBUG_URL)} If this doesn’t fix the problem, please report this bug: -- cgit v1.2.3