Sha256: fa2110efa9711e222213f596dd4a422171cc7651947de424f4d864ee6f694945
Contents?: true
Size: 322 Bytes
Versions: 10
Compression:
Stored size: 322 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
10 entries across 10 versions & 1 rubygems