mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Quick exception handler for framework
This should be improved later.
This commit is contained in:
parent
66ca06337d
commit
110a2b2d2a
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue