From aadc673afcd6442a44465d96b55c412f3dd09cd1 Mon Sep 17 00:00:00 2001 From: mryouse Date: Fri, 29 Jul 2022 19:07:17 +0000 Subject: bugfix: InterpretPanic needs a symbol as first arg --- neb/std/lists.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'neb') 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)]) -- cgit v1.2.3