Include exception message in bacon error output

This commit is contained in:
Steven Webb
2013-02-20 12:20:39 +08:00
parent 25ee0b4cb4
commit 554a8eaa9c

View File

@@ -413,10 +413,10 @@ module Bacon
@error = if e.kind_of? Error
Counter[e.count_as] += 1
e.count_as.to_s.upcase
"#{e.count_as.to_s.upcase} - #{e}"
else
Counter[:errors] += 1
"ERROR: #{e.class}"
"ERROR: #{e.class} - #{e}"
end
end
end