Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added comment on errors

  • Loading branch information...
commit ecf83f1553d72375f6aff5360db31762f4445f80 1 parent 4df10a0
joshua-choi authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/name/choi/joshua/fnparse/json.clj
View
2  src/name/choi/joshua/fnparse/json.clj
@@ -10,6 +10,8 @@
(def make-scalar-node (partial make-node :scalar))
(def make-array-node (partial make-node :array))
(def make-object-node (partial make-node :object))
+; A couple of parse errors have been put here and there. It's nowhere complete, but rather
+; it's to show examples of how to implement errors.
(deferror parse-error [] [state message message-args]
{:msg (str (format "JSON error at line %s, column %s: " (:line state) (:column state))
(apply format message message-args))
Please sign in to comment.
Something went wrong with that request. Please try again.