From 5df0b9bbb78d0c1263fe81808bc3565f8a807f74 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 10 Jun 2008 15:20:22 +0000 Subject: [PATCH] Like the comment says... dieDebug() instead of wfHttpError --- includes/api/ApiFormatBase.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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' ); } } -- 2.20.1