diff options
author | Zach Copley <zach@status.net> | 2010-07-29 20:31:22 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-07-29 20:31:22 +0000 |
commit | 0faa988e91056564b2ae19f045a81b322cce4e0c (patch) | |
tree | 79187009708588586bc3d3c087507408b89fd822 /actions/apitimelinegroup.php | |
parent | 4e8e77f6b091e024f58241c2807c61e0b7930e5c (diff) |
Fix for issue ID 2290: make sure errors are returned in the right
format, and use callback for errors when the request is JSONP
Diffstat (limited to 'actions/apitimelinegroup.php')
-rw-r--r-- | actions/apitimelinegroup.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/apitimelinegroup.php b/actions/apitimelinegroup.php index c4a6a18d2..7a40fd808 100644 --- a/actions/apitimelinegroup.php +++ b/actions/apitimelinegroup.php @@ -25,7 +25,7 @@ * @author Evan Prodromou <evan@status.net> * @author Jeffery To <jeffery.to@gmail.com> * @author Zach Copley <zach@status.net> - * @copyright 2009 StatusNet, Inc. + * @copyright 2009-2010 StatusNet, Inc. * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ @@ -138,7 +138,9 @@ class ApiTimelineGroupAction extends ApiPrivateAuthAction $this->raw($atom->getString()); } catch (Atom10FeedException $e) { $this->serverError( - 'Could not generate feed for group - ' . $e->getMessage() + 'Could not generate feed for group - ' . $e->getMessage(), + 400, + $this->format ); return; } |