Fix indentation of CaskCommandFailedError.
This commit is contained in:
parent
082bd5e98a
commit
4f1ef16cbf
@ -65,21 +65,19 @@ module Hbc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
<<-EOS
|
s = "Command failed to execute!\n"
|
||||||
Command failed to execute!
|
s.concat("\n")
|
||||||
|
s.concat("==> Failed command:\n")
|
||||||
==> Failed command:
|
s.concat(@cmd).concat("\n")
|
||||||
#{@cmd}
|
s.concat("\n")
|
||||||
|
s.concat("==> Standard Output of failed command:\n")
|
||||||
==> Standard Output of failed command:
|
s.concat(@stdout).concat("\n")
|
||||||
#{@stdout}
|
s.concat("\n")
|
||||||
|
s.concat("==> Standard Error of failed command:\n")
|
||||||
==> Standard Error of failed command:
|
s.concat(@stderr).concat("\n")
|
||||||
#{@stderr}
|
s.concat("\n")
|
||||||
|
s.concat("==> Exit status of failed command:\n")
|
||||||
==> Exit status of failed command:
|
s.concat(@status.inspect).concat("\n")
|
||||||
#{@status.inspect}
|
|
||||||
EOS
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user