Make error messages clearer

This commit is contained in:
Zhao Shenyang 2015-07-23 10:22:12 +08:00
parent dc607763e2
commit e2c1d45f21

View File

@ -65,5 +65,5 @@ def replace_hy_obj(obj, other):
if isinstance(wrapped_obj, HyObject): if isinstance(wrapped_obj, HyObject):
return wrapped_obj.replace(other) return wrapped_obj.replace(other)
else: else:
raise TypeError("Can't replace a Hy object " raise TypeError("Don't know how to wrap a %s object to a HyObject"
"with a non wrappable non Hy object") % (type obj))