Log error message from EndpointNotFound exceptions
Change-Id: I1e87cea22d08c6591934ff79953e5adbd27e0064 Closes-Bug: 1268310
This commit is contained in:
parent
f9e41ea81e
commit
649519d875
@ -51,8 +51,8 @@ class Command(CliffCommand):
|
|||||||
values.append(e.errors)
|
values.append(e.errors)
|
||||||
|
|
||||||
self.error_output(parsed_args, columns, values)
|
self.error_output(parsed_args, columns, values)
|
||||||
except ks_exceptions.EndpointNotFound:
|
except ks_exceptions.EndpointNotFound as e:
|
||||||
self.app.log.error("No endpoint was found. Missing credentials?")
|
self.app.log.error("No endpoint was found: %s", e.message)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user