From 2e7db1b96983b28e4af56e3ab5bad875eb6407fa Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 10 Jun 2024 18:25:12 -0400 Subject: [PATCH] fix typo --- src/errors.janet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/errors.janet b/src/errors.janet index 71a2f0d..5223274 100644 --- a/src/errors.janet +++ b/src/errors.janet @@ -7,14 +7,14 @@ (defn parse-error [e] (def msg (e :msg)) - (def {:line line-num :input input :soure source} (e :token)) + (def {:line line-num :input input :source source} (e :token)) + (print line-num input source) (def source-line (get-line source line-num)) (print "Parsing error: " msg) (print "On line " line-num " in " input) (print source-line) e) - (defn validation-error [e] (def msg (e :msg)) (def {:line line-num :input input :source source} (get-in e [:node :token]))