Include exception message in bacon error output

This commit is contained in:
Steven Webb
2013-02-20 12:20:39 +08:00
committed by Watson
parent 3377f889ba
commit a79c7e3d27

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