mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: provide a friendly message on parser errors
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
parent
63637b9d27
commit
3f2eb353bd
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ func splitCommand(line string) (string, string, error) {
|
|||
cmdline := TOKEN_WHITESPACE.Split(line, 2)
|
||||
|
||||
if len(cmdline) != 2 {
|
||||
return "", "", fmt.Errorf("We do not understand this file. Please ensure it is a valid Dockerfile.")
|
||||
return "", "", fmt.Errorf("We do not understand this file. Please ensure it is a valid Dockerfile. Parser error at %q", line)
|
||||
}
|
||||
|
||||
cmd := strings.ToLower(cmdline[0])
|
||||
|
|
Loading…
Add table
Reference in a new issue