mirror of https://github.com/janet-lang/janet
Add source file info on macro compiler error.
This commit is contained in:
parent
3cb947b37e
commit
77742dec11
|
@ -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: "
|
||||
|
|
Loading…
Reference in New Issue