[JY] add error check for setup nudeployenv