Skip to content
This repository has been archived by the owner on Feb 3, 2018. It is now read-only.

Commit

Permalink
fixed bug found by Matthew O'Connor
Browse files Browse the repository at this point in the history
  • Loading branch information
js-choi committed Aug 23, 2010
1 parent 46cc340 commit 803c4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/name/choi/joshua/fnparse/json.clj
Expand Up @@ -230,9 +230,9 @@
(binding [*remainder-accessor* remainder-a] ; this is completely
; optional
(rule-match text
#(raise parse-error "invalid document \"%s\""
#(raise parse-error % "invalid document \"%s\""
(apply-str (remainder-a %)))
#(raise parse-error "leftover data after a valid node \"%s\""
#(raise parse-error %2 "leftover data after a valid node \"%s\""
(apply-str (remainder-a %2)))
(struct state-s tokens 0 0))))
; The call to rule-match above is equivalent to the stuff below:
Expand Down

0 comments on commit 803c4f6

Please sign in to comment.