summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-12-18 07:11:36 +1100
committerMichael Still <mikal@stillhq.com>2012-12-18 18:36:37 +1100
commite865f120012c087b386d69bd47f82a5222c4677e (patch)
treef46defbd233948521a02e5cdd6b28f3ae0d23247 /bin
parent8749df777583f3c07e94ef277c7c93101e8bd541 (diff)
downloadnova-e865f120012c087b386d69bd47f82a5222c4677e.tar.gz
nova-e865f120012c087b386d69bd47f82a5222c4677e.tar.xz
nova-e865f120012c087b386d69bd47f82a5222c4677e.zip
Fix stack trace on incorrect nova-manage args.
This error reporting needs more work, but this at least stops us from presenting a stack trace to the user and is as broken as before. Resolves bug 1091403. Change-Id: I941983b60cc3762a916d57b7ea67264e093cfa44
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-manage5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/nova-manage b/bin/nova-manage
index c761ff6cc..4a4b2fda8 100755
--- a/bin/nova-manage
+++ b/bin/nova-manage
@@ -1131,8 +1131,11 @@ def main():
try:
cliutils.validate_args(fn, *fn_args, **fn_kwargs)
except cliutils.MissingArgs as e:
+ # NOTE(mikal): this isn't the most helpful error message ever. It is
+ # long, and tells you a lot of things you probably don't want to know
+ # if you just got a single arg wrong.
print fn.__doc__
- parser.print_help()
+ CONF.print_help()
print e
sys.exit(1)
try: