Handle error when variable sinatra.error is present