mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
31cdc63419
This fix avoids overwritting the previous error messages, ensures the client gets the correct error messages and not just the most recent message during the pull request. For this `var lastErr` replaced with a slice which acts as a temp place holder for the list of returned error messages for every attempt. The slice is later joined and returned to the caller function after searching for the image with diffirent versions(v2,v1,v0). Updated the code with check for no space left on device error occurance and prevent the daemon on falling back to v1,v0. Incorporated the comments from @calavera, @RichardScothern, @cpuguy83 Signed-off-by: Anil Belur <askb23@gmail.com> |
||
---|---|---|
.. | ||
fixtures/validate_manifest | ||
tags | ||
export.go | ||
graph.go | ||
graph_test.go | ||
history.go | ||
import.go | ||
list.go | ||
load.go | ||
load_unsupported.go | ||
pools_test.go | ||
pull.go | ||
pull_v1.go | ||
pull_v2.go | ||
pull_v2_test.go | ||
push.go | ||
push_v1.go | ||
push_v2.go | ||
registry.go | ||
service.go | ||
tags.go | ||
tags_unit_test.go |