Followup r89550, add new error message to getPossibleErrors
authorSam Reed <reedy@users.mediawiki.org>
Mon, 6 Jun 2011 09:40:45 +0000 (09:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 6 Jun 2011 09:40:45 +0000 (09:40 +0000)
includes/api/ApiComparePages.php

index 38fce50..cb77e7c 100644 (file)
@@ -114,6 +114,7 @@ class ApiComparePages extends ApiBase {
                return array_merge( parent::getPossibleErrors(), array(
                        array( 'code' => 'inputneeded', 'info' => 'A title or a revision is needed' ),
                        array( 'invalidtitle', 'title' ),
+                       array( 'code' => 'baddiff', 'info' => 'The diff cannot be retrieved. Maybe one or both revisions do not exist or you do not have permission to view them.' ),
                ) );
        }