Skip to content

Commit 3c3829d

Browse files
committed
Print full dockerfile path instead of context on error
... if the dockerfile is not found. Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
1 parent bce40c2 commit 3c3829d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: podman_compose.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ def build_one(compose, args, cnt):
21202120
if os.path.exists(dockerfile):
21212121
break
21222122
if not os.path.exists(dockerfile):
2123-
raise OSError("Dockerfile not found in " + ctx)
2123+
raise OSError("Dockerfile not found in " + dockerfile)
21242124
build_args = ["-f", dockerfile, "-t", cnt["image"]]
21252125
for secret in build_desc.get("secrets", []):
21262126
build_args.extend(get_secret_args(compose, cnt, secret))

0 commit comments

Comments
 (0)