1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #3297 from jaseg/master

Return meaningful error for meaningless Dockerfiles
This commit is contained in:
Michael Crosby 2014-01-06 10:58:24 -08:00
commit ee6823d797

View file

@ -650,7 +650,7 @@ func (b *buildFile) Build(context io.Reader) (string, error) {
}
return b.image, nil
}
return "", fmt.Errorf("An error occurred during the build\n")
return "", fmt.Errorf("No image was generated. This may be because the Dockerfile does not, like, do anything.\n")
}
func NewBuildFile(srv *Server, outStream, errStream io.Writer, verbose, utilizeCache, rm bool, outOld io.Writer, sf *utils.StreamFormatter, auth *auth.AuthConfig) BuildFile {