Merge "Better error message for sysinv forbidden error"

This commit is contained in:
Zuul 2022-09-21 15:53:48 +00:00 committed by Gerrit Code Review
commit a8cc17e12b
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ class CgtsShell(object):
args.func(client, args)
except exc.Unauthorized:
raise exc.CommandError("Invalid Identity credentials.")
except exc.HTTPForbidden:
raise exc.CommandError("Error: Forbidden")
def do_bash_completion(self, args):
"""Prints all of the commands and options to stdout.