update error in controller