mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Suggest login on pull denial
Signed-off-by: Alfred Landrum <alfred.landrum@docker.com>
This commit is contained in:
parent
c9f26eaaf8
commit
8d9f51ea55
3 changed files with 4 additions and 3 deletions
|
@ -73,6 +73,7 @@ func GetHTTPErrorStatusCode(err error) int {
|
|||
{"this node", http.StatusServiceUnavailable},
|
||||
{"needs to be unlocked", http.StatusServiceUnavailable},
|
||||
{"certificates have expired", http.StatusServiceUnavailable},
|
||||
{"repository does not exist", http.StatusNotFound},
|
||||
} {
|
||||
if strings.Contains(errStr, status.keyword) {
|
||||
statusCode = status.code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue