aboutsummaryrefslogtreecommitdiff
path: root/neb
diff options
context:
space:
mode:
authormryouse2022-07-29 19:07:17 +0000
committermryouse2022-07-29 19:07:17 +0000
commitaadc673afcd6442a44465d96b55c412f3dd09cd1 (patch)
tree47bf1aa1fb39ec23e39b653aa49ffd68f65d937b /neb
parente159bbe5135aa31dee55c2b5a023fdc6a2583f33 (diff)
bugfix: InterpretPanic needs a symbol as first arg
Diffstat (limited to 'neb')
-rw-r--r--neb/std/lists.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/neb/std/lists.py b/neb/std/lists.py
index 57d353e..9335c3d 100644
--- a/neb/std/lists.py
+++ b/neb/std/lists.py
@@ -76,7 +76,7 @@ LISTS.register("in?", in_multi)
def interpretLast(symbol, args, env, ns):
if len(args[0].args) == 0:
- raise InterpretPanic("List is empty")
+ raise InterpretPanic(symbol, "list is empty")
return evaluate(args[0].args[-1], env, ns)
last_func = Builtin("last", interpretLast, [Arg("list", TypeEnum.LIST)])