summaryrefslogtreecommitdiff
path: root/lisp/json.el
diff options
context:
space:
mode:
authorBasil L. Contovounesios <contovob@tcd.ie>2018-02-16 17:11:49 +0000
committerNoam Postavsky <npostavs@gmail.com>2018-03-18 23:13:29 -0400
commit7f27d42f0b64c74625e45909a0bf389d68eddc62 (patch)
tree64d215ec60bc56ab11b88db14c24308c4d84dee4 /lisp/json.el
parent10bd3b3af8acfc226acadc654298865cffc19cc9 (diff)
downloademacs-7f27d42f0b64c74625e45909a0bf389d68eddc62.tar.gz
Pass json-readtable-error data as a list (bug#30489)
* lisp/json.el (json-readtable-dispatch): Fix error data. * test/lisp/json-tests.el (test-json-read): Check error data is a list.
Diffstat (limited to 'lisp/json.el')
-rw-r--r--lisp/json.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/json.el b/lisp/json.el
index b03a482ca6e..d374f452e6b 100644
--- a/lisp/json.el
+++ b/lisp/json.el
@@ -685,7 +685,7 @@ become JSON objects."
(push (list c 'json-read-number) table))
(pcase-dolist (`(,c . ,rest) table)
(push `((eq ,char ,c) (,@rest)) res))
- `(cond ,@res (t (signal 'json-readtable-error ,char)))))
+ `(cond ,@res (t (signal 'json-readtable-error (list ,char))))))
(defun json-read ()
"Parse and return the JSON object following point.