Sha256: c13084897cc4c45b20607b9739d6f339cc6fe508ebfa0251faf9560eeccc2588
Contents?: true
Size: 324 Bytes
Versions: 8
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true class Rage::Reloader def initialize(app) @app = app end def call(env) Rage.code_loader.reload @app.call(env) rescue Exception => e exception_str = "#{e.class} (#{e.message}):\n#{e.backtrace.join("\n")}" puts(exception_str) [500, {}, [exception_str]] end end
Version data entries
8 entries across 8 versions & 1 rubygems