Skip to content

Instantly share code, notes, and snippets.

@clayg
Created July 1, 2016 10:14
Show Gist options
  • Save clayg/dc207e72f1f2e83e06ce812f7efe9b59 to your computer and use it in GitHub Desktop.
Save clayg/dc207e72f1f2e83e06ce812f7efe9b59 to your computer and use it in GitHub Desktop.
diff --git a/bin/swift-get-nodes b/bin/swift-get-nodes
index d52480e..00ae50a 100755
--- a/bin/swift-get-nodes
+++ b/bin/swift-get-nodes
@@ -52,8 +52,9 @@ if __name__ == '__main__':
try:
ring_path, args = parse_get_node_args(options, args)
- except InfoSystemExit:
- sys.exit(parser.print_help())
+ except InfoSystemExit as e:
+ parser.print_help()
+ sys.exit('ERROR: %s' % e)
ring = ring_name = None
if ring_path:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment