Friendlier build error
Hide the backtrace and show a comprehensible message. Closes #160.
This commit is contained in:
parent
a96ab41739
commit
168b1909ae
2 changed files with 7 additions and 3 deletions
|
|
@ -22,7 +22,8 @@ DOCKER_CONFIG_HINTS = {
|
|||
|
||||
|
||||
class BuildError(Exception):
|
||||
pass
|
||||
def __init__(self, service):
|
||||
self.service = service
|
||||
|
||||
|
||||
class CannotBeScaledError(Exception):
|
||||
|
|
@ -298,7 +299,7 @@ class Service(object):
|
|||
sys.stdout.write(line)
|
||||
|
||||
if image_id is None:
|
||||
raise BuildError()
|
||||
raise BuildError(self)
|
||||
|
||||
return image_id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue