Friendlier build error

Hide the backtrace and show a comprehensible message.

Closes #160.
This commit is contained in:
Aanand Prasad 2014-03-25 12:19:42 +00:00
commit 168b1909ae
2 changed files with 7 additions and 3 deletions

View file

@ -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