mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix error name typo (ErrInvalidWorikingDirectory)
Docker-DCO-1.1-Signed-off-by: Lars R. Damerow <lars@grandstreet.us> (github: bitness)
This commit is contained in:
parent
93f5d539fe
commit
d3150e0927
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrInvalidWorikingDirectory = fmt.Errorf("The working directory is invalid. It needs to be an absolute path.")
|
ErrInvalidWorkingDirectory = fmt.Errorf("The working directory is invalid. It needs to be an absolute path.")
|
||||||
ErrConflictAttachDetach = fmt.Errorf("Conflicting options: -a and -d")
|
ErrConflictAttachDetach = fmt.Errorf("Conflicting options: -a and -d")
|
||||||
ErrConflictDetachAutoRemove = fmt.Errorf("Conflicting options: --rm and -d")
|
ErrConflictDetachAutoRemove = fmt.Errorf("Conflicting options: --rm and -d")
|
||||||
)
|
)
|
||||||
|
@ -95,7 +95,7 @@ func parseRun(cmd *flag.FlagSet, args []string, sysInfo *sysinfo.SysInfo) (*Conf
|
||||||
return nil, nil, cmd, ErrConflictAttachDetach
|
return nil, nil, cmd, ErrConflictAttachDetach
|
||||||
}
|
}
|
||||||
if *flWorkingDir != "" && !path.IsAbs(*flWorkingDir) {
|
if *flWorkingDir != "" && !path.IsAbs(*flWorkingDir) {
|
||||||
return nil, nil, cmd, ErrInvalidWorikingDirectory
|
return nil, nil, cmd, ErrInvalidWorkingDirectory
|
||||||
}
|
}
|
||||||
if *flDetach && *flAutoRemove {
|
if *flDetach && *flAutoRemove {
|
||||||
return nil, nil, cmd, ErrConflictDetachAutoRemove
|
return nil, nil, cmd, ErrConflictDetachAutoRemove
|
||||||
|
|
Loading…
Reference in a new issue