Follow up to PR 38407
Follow up to PR 38407

This fix is a follow up to PR 38407 to use assert.Error
and assert.NilError when appropriate

Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>

rancher/docker,maxamillion/docker,Ramzec/docker,moul/docker,mikebrow/docker,djs55/docker,jameszhan/docker,konstruktoid/docker-upstream,mahak/docker,jwhonce/docker,kolyshkin/moby,bearstech/moby,nalind/docker,justincormack/docker,docker/docker,estesp/docker,yongtang/docker,rremer/moby,trebonian/docker,djs55/docker,docker/docker,AkihiroSuda/docker,rremer/moby,tmp6154/docker,paralin/docker,mikebrow/docker,nawawi/docker,kojiromike/docker,maxamillion/docker,ibuildthecloud/docker,kojiromike/docker,crosbymichael/docker,SvenDowideit/docker,jvanz/docker,x1022as/docker,konstruktoid/docker-1,jthelin/docker,cpuguy83/docker,estesp/docker,AkihiroSuda/docker,yosifkit/docker,unclejack/docker,mikebrow/docker,yongtang/docker,AkihiroSuda/docker,Mokolea/docker,trebonian/docker,jlhawn/docker,gnailuy/docker,scotttlin/docker,yosifkit/docker,moul/docker,djs55/docker,mahak/docker,jvanz/docker,gnailuy/docker,pradipd/moby,flavio/docker,jameszhan/docker,moby/moby,konstruktoid/docker-upstream,trebonian/docker,dims/docker,x1022as/docker,maxamillion/docker,rancher/docker,SvenDowideit/docker,mahak/docker,Mokolea/docker,jlhawn/docker,vdemeester/docker,cpuguy83/docker,pradipd/moby,gnailuy/docker,konstruktoid/docker-upstream,scotttlin/docker,konstruktoid/docker-1,x1022as/docker,KarthikNayak/docker,tmp6154/docker,nawawi/docker,yosifkit/docker,flavio/docker,jimjag/docker,moby/moby,AkihiroSuda/docker,pradipd/moby,scotttlin/docker,vdemeester/docker,KarthikNayak/docker,justincormack/docker,ibuildthecloud/docker,jimjag/docker,dims/docker,gnailuy/docker,paralin/docker,SvenDowideit/docker,Ramzec/docker,thaJeztah/docker,ibuildthecloud/docker,paralin/docker,estesp/docker,jthelin/docker,dims/docker,ibuildthecloud/docker,jimjag/docker,cpuguy83/docker,moby/moby,kolyshkin/moby,flavio/docker,jlhawn/docker,yongtang/docker,nawawi/docker,jameszhan/docker,thaJeztah/docker,nalind/docker,crosbymichael/docker,crosbymichael/docker,justincormack/docker,ibuildthecloud/docker,jvanz/docker,moby/moby,bearstech/moby,KarthikNayak/docker,rancher/docker,bearstech/moby,rremer/moby,docker/docker,konstruktoid/docker-upstream,cpuguy83/docker,kolyshkin/moby,moul/docker,paralin/docker,Mokolea/docker,mahak/docker,nalind/docker,konstruktoid/docker-1,unclejack/docker,thaJeztah/docker,Ramzec/docker,moul/docker,nalind/docker,thaJeztah/docker,unclejack/docker,jimjag/docker,nawawi/docker,bearstech/moby,jwhonce/docker,yosifkit/docker,trebonian/docker,flavio/docker,Ramzec/docker,Mokolea/docker,vdemeester/docker,kojiromike/docker,tmp6154/docker,jwhonce/docker