I think that this error handling should happen outside of post blocks. Again, I'm not sinatra user but I think that ```error MyException do...end``` should be used. Also you should specify the exception class.