Merge pull request #694 from michaelmaltese/patch-1

HyMacroExpansionError shouldn't truncate message
This commit is contained in:
Bob Tolbert 2014-12-06 10:18:30 -07:00
commit c5e2fd955f

View File

@ -200,8 +200,7 @@ def macroexpand_1(tree, module_name):
e.expression = tree
raise
except Exception as e:
msg = "`" + str(tree[0]) + "' " + \
" ".join(str(e).split()[1:])
msg = "expanding `" + str(tree[0]) + "': " + repr(e)
raise HyMacroExpansionError(tree, msg)
obj.replace(tree)
return obj