From 5e5af2381549989652761ce3475ae7b6917b3cae Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Sat, 14 Jun 2014 09:26:24 -0400 Subject: [PATCH] don't undent CaskError exception text The content of `output` is probably not indented, and will be left-truncated if it is multi-line. This happens often with Travis `hdiutil` errors --- lib/cask/exceptions.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cask/exceptions.rb b/lib/cask/exceptions.rb index 9677f525c..4be72d2e5 100644 --- a/lib/cask/exceptions.rb +++ b/lib/cask/exceptions.rb @@ -51,14 +51,14 @@ class CaskCommandFailedError < CaskError end def to_s; - <<-EOS.undent - Command failed to execute! + <<-EOS +Command failed to execute! - ==> Failed command: - #{@cmd} +==> Failed command: +#{@cmd} - ==> Output of failed command: - #{@output} +==> Output of failed command: +#{@output} EOS end end