Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion atomicapp/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
PROVIDERS)
from atomicapp.nulecule import NuleculeManager
from atomicapp.nulecule.exceptions import NuleculeException, DockerException
from atomicapp.plugin import ProviderFailedException
from atomicapp.utils import Utils

logger = logging.getLogger(LOGGER_DEFAULT)
Expand Down Expand Up @@ -122,6 +123,9 @@ def cli_func_exec(cli_func, cli_func_args):
except NuleculeException as e:
logger.error(e)
sys.exit(1)
except ProviderFailedException as e:
logger.error(e)
sys.exit(1)
except Exception as e:
logger.error(e, exc_info=True)
sys.exit(1)
Expand Down Expand Up @@ -371,7 +375,8 @@ def create_parser(self):

def run(self):
cmdline = sys.argv[1:] # Grab args from cmdline

if len(cmdline) == 0: # Show help if no args are given by the user
cmdline = ['-h']
# Initial setup of logging (to allow for a few early debug statements)
Logging.setup_logging(verbose=True, quiet=False)

Expand Down