Handling production error correctly