Sha256: 85bb4f158817c76186afa60e0943eeb407e54efe9a1e32d387149cb361d48bb3

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

<%
  nice_source = req.error.backtrace[0].match(/^(.+?):(\d+)(|:in `(.+)')$/)
  file = nice_source[1].gsub(File.expand_path(Config.app.root) + '/', '')
  line = nice_source[2]
  msg = CGI.escapeHTML("#{req.error.class}: #{req.error}")
  trace = req.error.backtrace.map { |bt| CGI.escapeHTML(bt) }.join('<br>')
%>

<h1>
  Pakyow found something wrong :(
</h1>

<p class="lead">
  The error originated on line <%=line%> of <code><%=file%></code>.
</p>

<h5 class="error">
  <%=msg%>
</h5>

<pre>
  <code><%=trace%></code>
</pre>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pakyow-presenter-0.11.3 pakyow-presenter/lib/pakyow/views/errors/500.erb
pakyow-presenter-0.11.2 pakyow-presenter/lib/pakyow/views/errors/500.erb
pakyow-presenter-0.11.1 pakyow-presenter/lib/pakyow/views/errors/500.erb
pakyow-presenter-0.11.0 pakyow-presenter/lib/pakyow/views/errors/500.erb