lib/dev/ui/spinner.rb in dev-ui-0.0.2 vs lib/dev/ui/spinner.rb in dev-ui-0.1.0
- old
+ new
@@ -149,14 +149,14 @@
puts"#{e.class}: #{e.message}"
puts "\tfrom #{e.backtrace.join("\n\tfrom ")}"
end
Dev::UI::Frame.divider('STDOUT')
- out = "(empty)" if out.strip.empty?
+ out = "(empty)" if out.nil? || out.strip.empty?
puts out
Dev::UI::Frame.divider('STDERR')
- err = "(empty)" if err.strip.empty?
+ err = "(empty)" if err.nil? || err.strip.empty?
puts err
end
end
@tasks.all?(&:success)
end