1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/volume
Amr Gawish df6af282b9 Print which path failed when the mount source doesn't exist.
Changes Details:
--------------
Fixes: #36395

Refactoring the code to do the following:
1. Add the method `errBindSourceDoesNotExist` inside `validate.go` to be in-line with the rest of error message
2. Utilised the new method inside `linux_parser.go`, `windows_parser.go` and `validate_test.go`
3. Change the format from `bind mount source path: '%s' does not exist` to `bind mount source path does not exist: %s`
4. Reflected the format change into the 2 unit tests, namely: `volume_test.go` and `validate_test.go`
5. Reflected the format change into `docker_api_containers_test.go` integration test

Signed-off-by: Amr Gawish <amr.gawish@gmail.com>
2018-02-27 23:19:46 +00:00
..
drivers Merge pull request #35829 from cpuguy83/no_private_mount_for_plugins 2018-02-21 12:28:13 +01:00
local Add canonical import comment 2018-02-05 16:51:57 -05:00
store Add canonical import comment 2018-02-05 16:51:57 -05:00
testutils Merge pull request #35829 from cpuguy83/no_private_mount_for_plugins 2018-02-21 12:28:13 +01:00
lcow_parser.go Add canonical import comment 2018-02-05 16:51:57 -05:00
linux_parser.go Print which path failed when the mount source doesn't exist. 2018-02-27 23:19:46 +00:00
parser.go Add canonical import comment 2018-02-05 16:51:57 -05:00
validate.go Print which path failed when the mount source doesn't exist. 2018-02-27 23:19:46 +00:00
validate_test.go Print which path failed when the mount source doesn't exist. 2018-02-27 23:19:46 +00:00
validate_unix_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
validate_windows_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
volume.go Add canonical import comment 2018-02-05 16:51:57 -05:00
volume_copy.go Add canonical import comment 2018-02-05 16:51:57 -05:00
volume_test.go Print which path failed when the mount source doesn't exist. 2018-02-27 23:19:46 +00:00
volume_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
volume_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
windows_parser.go Print which path failed when the mount source doesn't exist. 2018-02-27 23:19:46 +00:00