Commit 1c3a918c authored by dbarbera's avatar dbarbera
Browse files

Added error message to name errors

parent 3cdc39e5
......@@ -108,8 +108,7 @@ class Scope:
if self.parent:
return self.parent.resolve(name)
else:
print name
raise NameError
raise NameError("name '%s' is not defined" % name)
@singledispatch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment