mirror of
https://github.com/janet-lang/janet
synced 2025-09-09 14:26:10 +00:00
Add source file info on macro compiler error.
This commit is contained in:
@@ -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: "
|
||||
|
Reference in New Issue
Block a user