mirror of
https://github.com/janet-lang/janet
synced 2025-09-10 06:46:08 +00:00
Add source file info on macro compiler error.
This commit is contained in:
@@ -1783,7 +1783,7 @@
|
|||||||
[msg macrof where]
|
[msg macrof where]
|
||||||
(def ec (dyn :err-color))
|
(def ec (dyn :err-color))
|
||||||
(if macrof
|
(if macrof
|
||||||
(debug/stacktrace macrof msg)
|
(debug/stacktrace macrof (string msg " while compiling " where))
|
||||||
(eprint
|
(eprint
|
||||||
(if ec "\e[31m" "")
|
(if ec "\e[31m" "")
|
||||||
"compile error: "
|
"compile error: "
|
||||||
|
Reference in New Issue
Block a user