update the errorCode in job information