Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Oct 25, 2023
1 parent b0f7b4a commit 8e3a490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_editor/lang/palet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ def my_eval(env: Env, node: object) -> Any:
if length == 1:
return ref(oper, my_eval(env, node[1]))

raise MyError(f"{print_str(oper)}, expected procedure")
raise MyError(f"Tried to run: {print_str(oper)} with args: {print_str(node[1:])}")

if type(oper) is Syntax:
return oper(env, node)
Expand Down

0 comments on commit 8e3a490

Please sign in to comment.