ludus/janet/errors.janet

11 lines
313 B
Plaintext
Raw Normal View History

(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))