<% error = error.is_a?(Lookbook::Error) ? error : Lookbook::Error.new(error) @title = error.title disable_header ||= false %> <%= component "header" unless disable_header %>

<%= error.title %>

<%= error.message %>
<% if error.file_name %>
"> <%= error.file_name %> <% if error.line_number %> [line <%= error.line_number %>] <% end %>
<% end %> <% if error.source_code %>
<%= code error.file_lang, highlight_lines: [error.source_code[:highlighted_line]], line_numbers: true, start_line: error.source_code[:start_line], strip: false, class: "py-4 !max-w-full !border-red-200 !mt-1" do %><%= h(error.source_code[:code]) %><% end %>
<% end %>

Full stack trace

<% error.backtrace.each do |line| %>
<%= line %>
<% end %>