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
|
|
@ -9,7 +9,7 @@ from inspect import getdoc
|
|||
|
||||
from .. import __version__
|
||||
from ..project import NoSuchService, ConfigurationError
|
||||
from ..service import CannotBeScaledError
|
||||
from ..service import BuildError, CannotBeScaledError
|
||||
from .command import Command
|
||||
from .formatter import Formatter
|
||||
from .log_printer import LogPrinter
|
||||
|
|
@ -51,6 +51,9 @@ def main():
|
|||
except APIError as e:
|
||||
log.error(e.explanation)
|
||||
sys.exit(1)
|
||||
except BuildError as e:
|
||||
log.error("Service '%s' failed to build." % e.service.name)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
# stolen from docopt master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue