diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 16:59:25 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 16:59:25 -0800 |
commit | 9e9c5397b7602107afdda2894d2bf2bbd8ce652c (patch) | |
tree | 9c30cad8ec4605f5feb5551d565eebe9352209c3 /modules | |
parent | 4197ee39b9e9737afbc766d42ec68641d760654a (diff) |
Qualify the Bad Request output when the name is missing
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tag/helpers/tags_rest.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |