Skip to content

Commit

Permalink
Adding infra for displaying error message for user management in cli (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ViramShah91 authored and GitHub Enterprise committed Aug 11, 2022
1 parent f043b65 commit 77b09d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CLI/actioner/sonic-cli-sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77b09d1

Please sign in to comment.