lib/hyperstack/hotloader/add_error_boundry.rb in hyperstack-config-1.0.alpha1.2 vs lib/hyperstack/hotloader/add_error_boundry.rb in hyperstack-config-1.0.alpha1.3
- old
+ new
@@ -1,10 +1,10 @@
module Hyperstack
class Hotloader
module AddErrorBoundry
def self.included(base)
base.after_error do |*err|
- @err = err
+ @err = Hyperstack::Internal::Component::RescueWrapper.after_error_args || err
Hyperstack::Component.force_update!
end
base.define_method :render do
@err ? parse_display_and_clear_error : top_level_render
end