Skip to content

Commit

Permalink
Merge pull request #11 from telebugs/runner
Browse files Browse the repository at this point in the history
Report errors occurring in the runner
  • Loading branch information
kyrylo authored Jun 20, 2024
2 parents 98e252a + bca661c commit 7e35649
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/telebugs/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ class Railtie < ::Rails::Railtie
c.middleware.use Middleware::IgnoreDevEnv.new(Rails.env)
end
end

runner do
at_exit do
Telebugs.report($!).wait if $!
end
end
end
end

0 comments on commit 7e35649

Please sign in to comment.