Index: trunk/phase3/includes/api/ApiFormatBase.php |
— | — | @@ -287,9 +287,8 @@ |
288 | 288 | $feed->outItem($item); |
289 | 289 | $feed->outFooter(); |
290 | 290 | } else { |
291 | | - // Error has occured, print something usefull |
292 | | - // TODO: make this error more informative using ApiBase :: dieDebug() or similar |
293 | | - wfHttpError(500, 'Internal Server Error', ''); |
| 291 | + // Error has occured, print something useful |
| 292 | + ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' ); |
294 | 293 | } |
295 | 294 | } |
296 | 295 | |