From e6a812ac3002f22bccf75e39b015bcef7a89cd0c Mon Sep 17 00:00:00 2001 From: Alex Kost Date: Sun, 19 Aug 2018 23:32:57 +0300 Subject: url: Use nil for 'json-false' value * build-farm-url.el (build-farm-receive-data): Let-bind 'json-false' as its default value is ':json-false'. --- build-farm-url.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build-farm-url.el b/build-farm-url.el index ac5305f..909be4c 100644 --- a/build-farm-url.el +++ b/build-farm-url.el @@ -211,14 +211,15 @@ also raises an error if URL has not been retrieved properly." ;; does not return json data from "non-api" URLs. (if (eq (build-farm-url-type) 'cuirass) (error "Sorry, Cuirass does not support this API") - (error "\ + (error "\ The server has not returned 'application/json' content type. Perhaps, API has changed:\n%s" - url))) + url))) (with-temp-buffer (url-insert-buffer-contents url-buffer url) (goto-char (point-min)) - (let ((json-key-type 'symbol) + (let ((json-false nil) ; default value is `:json-false' + (json-key-type 'symbol) (json-array-type 'list) (json-object-type 'alist)) (json-read))))) -- cgit v1.2.3