From 9e9c5397b7602107afdda2894d2bf2bbd8ce652c Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 17 Jan 2010 16:59:25 -0800 Subject: Qualify the Bad Request output when the name is missing --- modules/tag/helpers/tags_rest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/tag/helpers/tags_rest.php b/modules/tag/helpers/tags_rest.php index 3ef897fd..7f0ed66a 100644 --- a/modules/tag/helpers/tags_rest.php +++ b/modules/tag/helpers/tags_rest.php @@ -33,7 +33,7 @@ class tags_rest_Core { access::required("edit", item::root()); if (empty($request->params->name)) { - throw new Rest_Exception("Bad Request", 400); + throw new Rest_Exception("Bad Request: missing name", 400); } $tag = ORM::factory("tag")->where("name", "=", $request->params->name)->find(); -- cgit v1.2.3