Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/registry/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down