Quick exception handler for framework

This should be improved later.
This commit is contained in:
Michael Miller 2018-09-21 15:23:01 -06:00
parent 66ca06337d
commit 110a2b2d2a

View file

@ -13,6 +13,14 @@ module Spectator
end end
at_exit do at_exit do
Runner.new(ExampleGroup::ROOT).run begin
Runner.new(ExampleGroup::ROOT).run
rescue ex
puts
puts "Encountered an unexpected error in framework"
puts ex.message
puts ex.backtrace.join("\n")
exit(1)
end
end end
end end