Skip to content

Commit

Permalink
adding traceback for the error
Browse files Browse the repository at this point in the history
  • Loading branch information
BabaYaga1221 committed May 5, 2023
1 parent db03937 commit 4db8835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rocker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def docker_build(docker_client = None, output_callback = None, **kwargs):
continue
if output_callback is not None:
output_callback(output)

if "error" in output.lower():
raise Exception(f"Build failed: {output}")

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

0 comments on commit 4db8835

Please sign in to comment.