Like the comment says... dieDebug() instead of wfHttpError
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 10 Jun 2008 15:20:22 +0000 (15:20 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 10 Jun 2008 15:20:22 +0000 (15:20 +0000)
includes/api/ApiFormatBase.php

index 7982c23..be131b3 100644 (file)
@@ -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' );
                }
        }