diff --git a/CLI/actioner/sonic-cli-sys.py b/CLI/actioner/sonic-cli-sys.py index 8725ad1033..0694acdbf9 100755 --- a/CLI/actioner/sonic-cli-sys.py +++ b/CLI/actioner/sonic-cli-sys.py @@ -101,6 +101,10 @@ def invoke(func, args): def run(func, args): api_response = invoke(func, args) + + if api_response is not None and api_response.errors(): + print((api_response.error_message())) + return if api_response.ok(): if api_response.content is not None: response = api_response.content