Skip to content

Commit

Permalink
builder: provide a friendly message on parser errors
Browse files Browse the repository at this point in the history
Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <[email protected]> (github: erikh)
  • Loading branch information
Erik Hollensbe committed Oct 15, 2014
1 parent 63637b9 commit 3f2eb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/parser/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 3f2eb35

Please sign in to comment.