trap errors even better

This commit is contained in:
John Bintz 2011-08-04 16:09:28 -04:00
parent 86d9ff7fc5
commit 02c050a9f4
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ module Hydra #:nodoc:
RSpec.instance_variable_set(:@configuration, nil)
begin
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
rescue ex
rescue Exception => ex
return ex.to_s
end
hydra_output.rewind