diff options
| author | mryouse | 2022-07-29 19:07:17 +0000 |
|---|---|---|
| committer | mryouse | 2022-07-29 19:07:17 +0000 |
| commit | aadc673afcd6442a44465d96b55c412f3dd09cd1 (patch) | |
| tree | 47bf1aa1fb39ec23e39b653aa49ffd68f65d937b /neb/std/lists.py | |
| parent | e159bbe5135aa31dee55c2b5a023fdc6a2583f33 (diff) | |
bugfix: InterpretPanic needs a symbol as first arg
Diffstat (limited to 'neb/std/lists.py')
| -rw-r--r-- | neb/std/lists.py | 2 |
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)]) |
