update error function process