Skip to content

Commit 4db8835

Browse files
committed
adding traceback for the error
1 parent db03937 commit 4db8835

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/rocker/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ def docker_build(docker_client = None, output_callback = None, **kwargs):
148148
continue
149149
if output_callback is not None:
150150
output_callback(output)
151+
152+
if "error" in output.lower():
153+
raise Exception(f"Build failed: {output}")
151154

152155
match = re.match(r'Successfully built ([a-z0-9]{12})', output)
153156
if match:

0 commit comments

Comments
 (0)