mirror of
https://github.com/moby/moby.git
synced 2026-07-13 02:52:20 +00:00
volumes/mounts: remove backticks from errors
These errors used a backtick, which is not commonly used in our errors. Change them to use single quotes instead. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -144,7 +144,7 @@ func windowsValidMountMode(mode string) bool {
|
||||
func windowsValidateNotRoot(p string) error {
|
||||
p = strings.ToLower(strings.ReplaceAll(p, `/`, `\`))
|
||||
if p == "c:" || p == `c:\` {
|
||||
return fmt.Errorf("destination path cannot be `c:` or `c:\\`: %v", p)
|
||||
return fmt.Errorf(`destination path (%v) cannot be 'c:' or 'c:\'`, p)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@ func TestWindowsParseMountRaw(t *testing.T) {
|
||||
`..\`: "invalid volume specification: ",
|
||||
`c:\:..\`: "invalid volume specification: ",
|
||||
`c:\:d:\:xyzzy`: "invalid volume specification: ",
|
||||
`c:`: "cannot be `c:`",
|
||||
`c:\`: "cannot be `c:`",
|
||||
`c:`: "cannot be 'c:'",
|
||||
`c:\`: "cannot be 'c:'",
|
||||
`c:\notexist:d:`: `source path does not exist: c:\notexist`,
|
||||
`c:\windows\system32\ntdll.dll:d:`: `source path must be a directory`,
|
||||
`name<:d:`: `invalid volume specification`,
|
||||
|
||||
Reference in New Issue
Block a user