From e2c1d45f21937097cc850724a39e85bc29989235 Mon Sep 17 00:00:00 2001 From: Zhao Shenyang Date: Thu, 23 Jul 2015 10:22:12 +0800 Subject: [PATCH] Make error messages clearer --- hy/models/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hy/models/__init__.py b/hy/models/__init__.py index 13a9d58..48ac02b 100644 --- a/hy/models/__init__.py +++ b/hy/models/__init__.py @@ -65,5 +65,5 @@ def replace_hy_obj(obj, other): if isinstance(wrapped_obj, HyObject): return wrapped_obj.replace(other) else: - raise TypeError("Can't replace a Hy object " - "with a non wrappable non Hy object") + raise TypeError("Don't know how to wrap a %s object to a HyObject" + % (type obj))