From: Tim Starling Date: Tue, 10 Jun 2008 15:20:22 +0000 (+0000) Subject: Like the comment says... dieDebug() instead of wfHttpError X-Git-Tag: 1.31.0-rc.0~47066 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=5df0b9bbb78d0c1263fe81808bc3565f8a807f74;p=lhc%2Fweb%2Fwiklou.git Like the comment says... dieDebug() instead of wfHttpError --- diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 7982c232cf..be131b379c 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -287,9 +287,8 @@ class ApiFormatFeedWrapper extends ApiFormatBase { $feed->outItem($item); $feed->outFooter(); } else { - // Error has occured, print something usefull - // TODO: make this error more informative using ApiBase :: dieDebug() or similar - wfHttpError(500, 'Internal Server Error', ''); + // Error has occured, print something useful + ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' ); } }