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 e.expression = tree
raise raise
except Exception as e: except Exception as e:
msg = "`" + str(tree[0]) + "' " + \ msg = "expanding `" + str(tree[0]) + "': " + repr(e)
" ".join(str(e).split()[1:])
raise HyMacroExpansionError(tree, msg) raise HyMacroExpansionError(tree, msg)
obj.replace(tree) obj.replace(tree)
return obj return obj