Skip to content

Commit 2f83759

Browse files
committed
BuildImageCmdImpl: Fix an exception message
The exception is thrown is if "dockerFile" is not a file, not if it is not a directory.
1 parent 6c5898b commit 2f83759

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

+1-1
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)