Using Sinatra's error block and Sinatra Environment
add line to set environment to production, so the error block is called.