From 696d202e18c66211ce663d7ceb562abbc639a164 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 6 Jun 2011 09:40:45 +0000 Subject: [PATCH] Followup r89550, add new error message to getPossibleErrors --- includes/api/ApiComparePages.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 38fce50bd4..cb77e7c1ac 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -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.' ), ) ); } -- 2.20.1