summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bangert <ben@groovie.org>2015-05-11 12:52:57 -0700
committerBen Bangert <ben@groovie.org>2015-05-11 12:52:57 -0700
commit5667c58d6dc32333694ade5105f9a5c30b575bd3 (patch)
treed900ebf5bd74f20e25a73e4926e6ec76dbdbfb58
parent2356a23d3c018b1cce73cdb211de53586526ad74 (diff)
parent46a091effcff08880e30fc63d91f7c1527c667ac (diff)
downloadkazoo-5667c58d6dc32333694ade5105f9a5c30b575bd3.tar.gz
Merge pull request #299 from harlowja/same-type-error-format
Use the same type error message format as the other type errors
-rw-r--r--kazoo/client.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kazoo/client.py b/kazoo/client.py
index 4fb0585..11f27fd 100644
--- a/kazoo/client.py
+++ b/kazoo/client.py
@@ -1285,8 +1285,7 @@ class KazooClient(object):
"""
if not isinstance(recursive, bool):
- raise TypeError("recursive must be a bool")
-
+ raise TypeError("Invalid type for 'recursive' (bool expected)")
if recursive:
return self._delete_recursive(path)
else: