diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-12 21:19:31 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-12 21:19:31 +0000 |
commit | 08eea895f1a445156c2e1c382bf167ba6d9d4515 (patch) | |
tree | e4fc73e5a4ffef0c94550c56548125ca70232925 /sx-request.el | |
parent | 67adfdc14d882d2cc208476b0fc15929161433e6 (diff) |
Update code to new assoc-let
Diffstat (limited to 'sx-request.el')
-rw-r--r-- | sx-request.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sx-request.el b/sx-request.el index 56362fc..f8feb22 100644 --- a/sx-request.el +++ b/sx-request.el @@ -107,15 +107,16 @@ number of requests left every time it finishes a call.") (error "Response could not be read by `json-read-from-string'")) ;; If we get here, the response is a valid data structure (sx-assoc-let response - (when error_id + (when .error_id (error "Request failed: (%s) [%i %s] %S" - method error_id error_name error_message)) + .method .error_id .error_name .error_message)) (when (< (setq sx-request-remaining-api-requests - quota_remaining) + .quota_remaining) sx-request-remaining-api-requests-message-threshold) (sx-message "%d API requests reamining" sx-request-remaining-api-requests)) - items))))))) + :hi + .items))))))) ;;; Support Functions |