#34 √ resolved
Jonas Nicklas

[PATCH] Unnecessary error code handling in Error class

Reported by Jonas Nicklas | July 6th, 2008 @ 08:00 AM | in 0.3.0 Sammy

The Sinatra::Error class is initialized with an error code, however that code doesn't seem to be used anywhere.

Also in the documentation for Sinatra::Application#error, the example given specifies a custom error code, suggesting that this is the intended usage.

The code passed to the Error class from the Sinatra::Application#error method is the class of the custom error handler, which doesn't really seem right.

This patch removes the redundant code from Sinatra::Error.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Tags