Enable xerror in python tooling 50/77450/2
authorJames Harrison <00jamesh@gmail.com>
Thu, 27 Apr 2017 16:12:23 +0000 (17:12 +0100)
committerDave Rigby <daver@couchbase.com>
Fri, 28 Apr 2017 11:26:31 +0000 (11:26 +0000)
A number of errors are explicitly handled and give reasonable errors,
but the remaining exceptions will now print the associated message from
the error map too. Errors which would previously lead to being
disconnected as the client would not understand are now received and
raised appropriately.

Change-Id: I69205b105d066f2899f7152969e96065682b0708
Reviewed-on: http://review.couchbase.org/77450
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: James Harrison <james.harrison@couchbase.com>
management/cli_auth_utils.py

index 0612bdb..136f80d 100644 (file)
@@ -49,6 +49,7 @@ def cmd_decorator(f):
                        .format(username, bucket))
                 sys.exit(1)
 
+        mc.enable_xerror()
         mc.hello("{0} {1}".format(os.path.split(sys.argv[0])[1],
                                 os.getenv("EP_ENGINE_VERSION",
                                           "unknown version")))