Sha256: 169603ae622de5d0e2c87c0840f683d5ecdbbed211634684d1e94caf43af30f6

Contents?: true

Size: 1.01 KB

Versions: 20

Compression:

Stored size: 1.01 KB

Contents

<header>
  <h1>
    <%= @exception.class.to_s %>
  </h1>
</header>

<main role="main" id="container">
  <%= render "rescues/message_and_suggestions", exception: @exception %>

  <% if @exception.error['location'] %>
    <div class="source">
      <div class="data">
<pre>

    <%= @exception.error['location']['file'] %>:<%= @exception.error['location']['line'] %>:<%= @exception.error['location']['column'] %>

<%= @exception.error['location']['line'].to_s.rjust 5 %> │    <%= @exception.error['location']['line_text'] %>
      │    <%= (@exception.error['location']['length'] > 1 ? "~" * @exception.error['location']['length'] : "^").rjust(@exception.error['location']['column'] + @exception.error['location']['length']) %>
<%- if @exception.error['location']['suggestion'].present? -%>    + │    <%= @exception.error['location']['suggestion'].rjust(@exception.error['location']['column'] + 1) %>
<% else %> <%- end -%>
</pre>
      </div>
    </div>
  <% end %>

  <%= render template: "rescues/_request_and_response" %>
</main>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
proscenium-0.11.0.pre.12-x86_64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.12-aarch64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.12-arm64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.12-x86_64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.11-x86_64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.11-aarch64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.11-arm64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.11-x86_64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.10-x86_64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.10-aarch64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.10-arm64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.10-x86_64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.9-x86_64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.9-aarch64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.9-arm64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.9-x86_64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.8-x86_64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.8-aarch64-linux lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.8-arm64-darwin lib/proscenium/templates/rescues/build_error.html.erb
proscenium-0.11.0.pre.8-x86_64-darwin lib/proscenium/templates/rescues/build_error.html.erb