lib/mattock/command-line.rb in mattock-0.3.2 vs lib/mattock/command-line.rb in mattock-0.3.3

- old
+ new

@@ -26,10 +26,11 @@ rescue return false end def format_streams - "stdout:#{stdout.empty? ? "[empty]\n" : "\n#{stdout}"}stderr:#{stderr.empty? ? "[empty]\n" : "\n#{stderr}"}---" + "stdout:#{stdout.nil? || stdout.empty? ? "[empty]\n" : "\n#{stdout}"}" + + "stderr:#{stderr.nil? || stderr.empty? ? "[empty]\n" : "\n#{stderr}"}---" end def must_succeed! case exit_code when 0