~caio1982/mojo/local_repo_keys

« back to all changes in this revision

Viewing changes to mojo/cli.py

  • Committer: Tim Kuhlman
  • Date: 2016-01-08 16:56:32 UTC
  • mfrom: (251.1.2 broken-retry)
  • Revision ID: timothy.kuhlman@canonical.com-20160108165632-0est4r0ptl9u1nka
[mthaddon, r=timkuhlman] Fix failing retry option with new exception handling

Show diffs side-by-side

added added

removed removed

Lines of Context:
495
495
            mojo.jujuwait.JujuWaitException,
496
496
            mojo.phase.CollectPhaseException,
497
497
            mojo.phase.VerifyPhaseException,
498
 
            mojo.phase.ScriptPhaseException,
499
498
            mojo.phase.JujuDeployerException) as e:
500
499
        logging.error(e)
501
500
        sys.exit(1)
 
501
    except mojo.phase.ScriptPhaseException as e:
 
502
        logging.error(e.output)
 
503
        sys.exit(1)
502
504
    except mojo.exceptions.ConfigNotFoundException as e:
503
505
        logging.error(e.message)
504
506
        print("Searched:", file=sys.stderr)