Include original error when translating distribution errors
Include original error when translating distribution errors

Before:

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/busybox:lsfkjsdflkjsdf"
    {"message":"manifest for busybox:lsfkjsdflkjsdf not found"}

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/nosuchimage:latest"
    {"message":"pull access denied for nosuchimage, repository does not exist or may require 'docker login'"}

After:

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/busybox:lsfkjsdflkjsdf"
    {"message":"manifest for busybox:lsfkjsdflkjsdf not found: manifest unknown: manifest unknown"}

    curl -v -X POST --unix-socket /var/run/docker.sock "http://localhost/images/create?fromImage=library/nosuchimage:latest"
    {"message":"pull access denied for nosuchimage, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}

Signed-off-by: Sebastiaan van Stijn <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@gone.nl>

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