diff options
| author | Markus Reiter | 2016-10-01 23:18:38 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-10-02 19:53:43 +0200 |
| commit | 4f1ef16cbf09fc1b98143ff672859dcefda00e1b (patch) | |
| tree | 581fcf2f4acfd3396cdbc159efc166a9a6abf680 /Library/Homebrew/cask/lib | |
| parent | 082bd5e98ae7592bc92466186609066e00c2bf84 (diff) | |
| download | brew-4f1ef16cbf09fc1b98143ff672859dcefda00e1b.tar.bz2 | |
Fix indentation of CaskCommandFailedError.
Diffstat (limited to 'Library/Homebrew/cask/lib')
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/exceptions.rb | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/exceptions.rb b/Library/Homebrew/cask/lib/hbc/exceptions.rb index 2f63366ca..0977ac5c9 100644 --- a/Library/Homebrew/cask/lib/hbc/exceptions.rb +++ b/Library/Homebrew/cask/lib/hbc/exceptions.rb @@ -65,21 +65,19 @@ module Hbc end def to_s - <<-EOS - Command failed to execute! - - ==> Failed command: - #{@cmd} - - ==> Standard Output of failed command: - #{@stdout} - - ==> Standard Error of failed command: - #{@stderr} - - ==> Exit status of failed command: - #{@status.inspect} - EOS + s = "Command failed to execute!\n" + s.concat("\n") + s.concat("==> Failed command:\n") + s.concat(@cmd).concat("\n") + s.concat("\n") + s.concat("==> Standard Output of failed command:\n") + s.concat(@stdout).concat("\n") + s.concat("\n") + s.concat("==> Standard Error of failed command:\n") + s.concat(@stderr).concat("\n") + s.concat("\n") + s.concat("==> Exit status of failed command:\n") + s.concat(@status.inspect).concat("\n") end end |
