trap errors even better
This commit is contained in:
parent
02c050a9f4
commit
1f5f494edc
|
@ -162,7 +162,7 @@ module Hydra #:nodoc:
|
||||||
begin
|
begin
|
||||||
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
|
result = RSpec::Core::Runner.run(config, hydra_output, hydra_output)
|
||||||
rescue Exception => ex
|
rescue Exception => ex
|
||||||
return ex.to_s
|
return ex.to_s + "\n" + ex.backtrace.join("\n")
|
||||||
end
|
end
|
||||||
hydra_output.rewind
|
hydra_output.rewind
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue