trap errors even better
This commit is contained in:
parent
86d9ff7fc5
commit
02c050a9f4
|
@ -161,7 +161,7 @@ module Hydra #:nodoc:
|
||||||
RSpec.instance_variable_set(:@configuration, nil)
|
RSpec.instance_variable_set(:@configuration, nil)
|
||||||
begin
|
begin
|
||||||
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
|
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
|
||||||
rescue ex
|
rescue Exception => ex
|
||||||
return ex.to_s
|
return ex.to_s
|
||||||
end
|
end
|
||||||
hydra_output.rewind
|
hydra_output.rewind
|
||||||
|
|
Loading…
Reference in New Issue