diff --git a/lib/registry/registry.rb b/lib/registry/registry.rb index 11dc64a..5a7e181 100644 --- a/lib/registry/registry.rb +++ b/lib/registry/registry.rb @@ -288,8 +288,8 @@ def doreq(type, url, stream = nil, payload = nil) )) rescue SocketError raise DockerRegistry2::RegistryUnknownException - rescue RestClient::NotFound => e - raise DockerRegistry2::NotFound, e + rescue RestClient::NotFound + raise DockerRegistry2::NotFound, "Image not found at #{@uri.host}" rescue RestClient::Unauthorized => e header = e.response.headers[:www_authenticate] method = header.to_s.downcase.split(' ')[0]