From 76dde309a49b8959d482257b5622ef6dcf72072c Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Fri, 14 Nov 2014 09:24:53 -0500 Subject: Use correct method `sx-request-make' wouldn't behave correctly on this --- sx-question.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sx-question.el') diff --git a/sx-question.el b/sx-question.el index 69a4d7f..40adbcb 100644 --- a/sx-question.el +++ b/sx-question.el @@ -54,7 +54,7 @@ (defun sx-question-get-question (site id) "Get the question ID from SITE." - (let ((res (sx-request-make + (let ((res (sx-method-call (format "questions/%s" id) `((site . ,site)) sx-question-browse-filter))) -- cgit v1.2.3 From 378fb090ab1826a7ee09e20c1ed439be283c72d4 Mon Sep 17 00:00:00 2001 From: Sean Allred Date: Fri, 14 Nov 2014 09:25:15 -0500 Subject: Ensure error string can print "%s" must take a string, but what we get might not be string-y. --- sx-question.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sx-question.el') diff --git a/sx-question.el b/sx-question.el index 40adbcb..d15cc80 100644 --- a/sx-question.el +++ b/sx-question.el @@ -60,7 +60,7 @@ sx-question-browse-filter))) (if (vectorp res) (elt res 0) - (error "Couldn't find question %s in %s" id site)))) + (error "Couldn't find question %S in %S" id site)))) ;;; Question Properties -- cgit v1.2.3