Skip to content

Commit

Permalink
Include variable name in error message if missing in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mira authored and stylewarning committed Sep 26, 2024
1 parent 4d9aafc commit f6ee319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typechecker/tc-env.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
(error 'tc:tc-error
:err (source:source-error
:location (source:location var)
:message "Unknown variable"
:primary-note "unknown variable"
:message (format nil "Unknown variable ~a" var-name)
:primary-note (format nil "unknown variable ~a" var-name)
:help-notes (loop :for suggestion :in (tc-env-suggest-value env var-name)
:collect (se:make-source-error-help
:span (source:location-span (source:location var))
Expand Down

0 comments on commit f6ee319

Please sign in to comment.