Disabling error reporting from Sinatra to a browser To disable error reporting to a browser add next line to your application: disable :show_exceptions Related Posts Adding Google Analytics to Sinatra application