Permalink
Browse files

Changed exception message for EOF in string literal

Signed-off-by: Stuart Sierra <mail@stuartsierra.com>
  • Loading branch information...
1 parent 297eaee commit 63c047e62727c3ef50321f423df0bcf5963cce22 @ska2342 ska2342 committed with stuartsierra Dec 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/clojure/clojure/data/json.clj
View
2 src/main/clojure/clojure/data/json.clj
@@ -133,7 +133,7 @@
(loop []
(let [c (.read stream)]
(when (neg? c)
- (throw (EOFException. "JSON error (end-of-file inside array)")))
+ (throw (EOFException. "JSON error (end-of-file inside string)")))
(codepoint-case c
\" (str buffer)
\\ (do (.append buffer (read-escaped-char stream))

0 comments on commit 63c047e

Please sign in to comment.