diff options
Diffstat (limited to 'icktool')
-rwxr-xr-x | icktool | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -179,7 +179,11 @@ class Icktool(cliapp.Application): return self.settings['token'] ac = self._new_auth(api) scopes = ' '.join(self.settings['scope']) - return ac.get_token(scopes) + try: + return ac.get_token(scopes) + except ick2.HttpError as e: + sys.stderr.write('Error getting token: %s\n' % str(e)) + sys.exit(1) def _get_client_creds(self, url): cp = configparser.ConfigParser() |