class DevelopmentModePlugin def after_response(current_response, _) current_response.each do |name, result| current_response[name] = result.merge({ "html" => render(name, result) }) if result["error"] end end private def render(name, result) <<-HTML

Development Warning! The #{name} component failed to render with Hypernova. Error stack:

#{result["html"]} HTML end def stack_trace(result) result["error"]["stack"] || [] end end