ludus/janet/errors.janet
2024-06-05 13:01:43 -04:00

11 lines
313 B
Plaintext

(import spork/json :as j)
(import /base :as b)
(defn scan-error [e out] (set (out :errors) e) (j/encode out))
(defn parse-error [e out] (set (out :errors) e) (j/encode out))
(defn validation-error [e out] (set (out :errors) e) (j/encode out))
(defn runtime-error [e out] (set (out :errors) e) (j/encode out))