Ring middleware to pretty print exception