<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;Here&amp;#8217;s how to make sure 500 errors are caught, not raised through &lt;code&gt;shnork&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;Sinatra&lt;/h2&gt;
&lt;p&gt;Make sure you have an error block, like so:&lt;/p&gt;
&lt;pre&gt;error do
  &quot;oh noes a 500 error&quot;
end
&lt;/pre&gt;</body>
  <created-at type="datetime">2009-11-26T06:42:24-08:00</created-at>
  <id type="integer">86427</id>
  <permalink>catching500errors</permalink>
  <repository-id type="integer">72555</repository-id>
  <title>Catching500Errors</title>
  <updated-at type="datetime">2008-11-25T22:53:20-08:00</updated-at>
  <user-id type="integer">2049</user-id>
</wiki>
