make up error function script