diff options
| author | Naren | 2016-10-17 15:28:40 -0500 |
|---|---|---|
| committer | Josh Hagins | 2016-10-18 09:52:55 -0400 |
| commit | 6ac54f297f0a45b076f36d39f9e36f3adcb951a7 (patch) | |
| tree | 7529629a54c14df0bfad36f61fd88b93b07c7a43 /Library | |
| parent | 29d81fc6477547390330f2b1cb1810aa185a06ac (diff) | |
| download | brew-6ac54f297f0a45b076f36d39f9e36f3adcb951a7.tar.bz2 | |
remove empty line and concatenate newline to e.message in cli.rb
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/cli.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/utils.rb | 3 |
2 files changed, 2 insertions, 3 deletions
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: |
