Merge "Better error message for sysinv forbidden error"
This commit is contained in:
commit
a8cc17e12b
@ -303,6 +303,8 @@ class CgtsShell(object):
|
|||||||
args.func(client, args)
|
args.func(client, args)
|
||||||
except exc.Unauthorized:
|
except exc.Unauthorized:
|
||||||
raise exc.CommandError("Invalid Identity credentials.")
|
raise exc.CommandError("Invalid Identity credentials.")
|
||||||
|
except exc.HTTPForbidden:
|
||||||
|
raise exc.CommandError("Error: Forbidden")
|
||||||
|
|
||||||
def do_bash_completion(self, args):
|
def do_bash_completion(self, args):
|
||||||
"""Prints all of the commands and options to stdout.
|
"""Prints all of the commands and options to stdout.
|
||||||
|
Loading…
Reference in New Issue
Block a user