From 649519d875c909f6f982d8b35f8ec4698eede25a Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Mon, 6 Jul 2015 15:43:48 +0100 Subject: [PATCH] Log error message from EndpointNotFound exceptions Change-Id: I1e87cea22d08c6591934ff79953e5adbd27e0064 Closes-Bug: 1268310 --- designateclient/cli/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designateclient/cli/base.py b/designateclient/cli/base.py index cef1ab4..165ffbd 100644 --- a/designateclient/cli/base.py +++ b/designateclient/cli/base.py @@ -51,8 +51,8 @@ class Command(CliffCommand): values.append(e.errors) self.error_output(parsed_args, columns, values) - except ks_exceptions.EndpointNotFound: - self.app.log.error("No endpoint was found. Missing credentials?") + except ks_exceptions.EndpointNotFound as e: + self.app.log.error("No endpoint was found: %s", e.message) return 1