mirror of
https://github.com/janet-lang/janet
synced 2025-01-23 13:46:52 +00:00
Update error reporting.
This commit is contained in:
parent
b06befc58d
commit
82845bc7a3
@ -543,8 +543,7 @@ onvalue."
|
||||
|
||||
(defn default-error-handler
|
||||
[t x f]
|
||||
(print)
|
||||
(file-write stdout "error: ")
|
||||
(file-write stdout (string t " error: "))
|
||||
(pp x)
|
||||
(when f
|
||||
(def st (fiber-stack f))
|
||||
@ -563,8 +562,7 @@ onvalue."
|
||||
(when func (file-write stdout (string " " func)))
|
||||
(when pc (file-write stdout (string " (pc=" pc ")")))
|
||||
(when tail (file-write stdout " (tailcall)"))
|
||||
(file-write stdout "\n")))
|
||||
(print))
|
||||
(file-write stdout "\n"))))
|
||||
|
||||
(def require (do
|
||||
(def cache @{})
|
||||
|
Loading…
Reference in New Issue
Block a user