Browse code

Return meaningful error for meaningless Dockerfiles

jaseg authored on 2013/12/20 22:02:10
Showing 1 changed files
... ...
@@ -568,7 +568,7 @@ func (b *buildFile) Build(context io.Reader) (string, error) {
568 568
 		}
569 569
 		return b.image, nil
570 570
 	}
571
-	return "", fmt.Errorf("An error occurred during the build\n")
571
+	return "", fmt.Errorf("No image was generated. This may be because the Dockerfile does not, like, do anything.\n")
572 572
 }
573 573
 
574 574
 func NewBuildFile(srv *Server, outStream, errStream io.Writer, verbose, utilizeCache, rm bool, outOld io.Writer, sf *utils.StreamFormatter, auth *auth.AuthConfig) BuildFile {