lib/tty/command/exit_error.rb in tty-command-0.9.0 vs lib/tty/command/exit_error.rb in tty-command-0.10.0

- old
+ new

@@ -22,10 +22,10 @@ " stdout: #{extract_output(result.out)}\n" \ " stderr: #{extract_output(result.err)}\n" end def extract_output(value) - (value || '').strip.empty? ? 'Nothing written' : value.strip + (value || "").strip.empty? ? "Nothing written" : value.strip end end # ExitError end # Command end # TTY