Add source file info on macro compiler error.

This commit is contained in:
Calvin Rose 2020-01-20 16:45:57 -06:00
parent 3cb947b37e
commit 77742dec11
1 changed files with 1 additions and 1 deletions

View File

@ -1783,7 +1783,7 @@
[msg macrof where]
(def ec (dyn :err-color))
(if macrof
(debug/stacktrace macrof msg)
(debug/stacktrace macrof (string msg " while compiling " where))
(eprint
(if ec "\e[31m" "")
"compile error: "