From 554a8eaa9cb7cfd0d2fd457884f7ac1ca06ad02d Mon Sep 17 00:00:00 2001 From: Steven Webb Date: Wed, 20 Feb 2013 12:20:39 +0800 Subject: [PATCH] Include exception message in bacon error output --- lib/motion/spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/motion/spec.rb b/lib/motion/spec.rb index d1f125be..44bb31ac 100644 --- a/lib/motion/spec.rb +++ b/lib/motion/spec.rb @@ -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