Skip to content

Commit de0c1d4

Browse files
authored
Merge pull request docker-java#1178 from sschuberth/not-a-file
BuildImageCmdImpl: Fix an exception message
2 parents 6c5898b + 2f83759 commit de0c1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/dockerjava/core/command/BuildImageCmdImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public BuildImageCmdImpl withDockerfile(File dockerfile) {
327327
throw new IllegalArgumentException("Dockerfile does not exist");
328328
}
329329
if (!dockerfile.isFile()) {
330-
throw new IllegalArgumentException("Not a directory");
330+
throw new IllegalArgumentException("Dockerfile is not a file");
331331
}
332332

333333
if (baseDirectory == null) {

0 commit comments

Comments
 (0)