r41849 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41848‎ | r41849 | r41850 >
Date:19:32, 8 October 2008
Author:aaron
Status:old
Tags:error messages 
Comment:
Throw pettier error messages
Modified paths:
  • /trunk/extensions/CodeReview/SpecialCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/SpecialCode.php
@@ -83,7 +83,9 @@
8484 $view = new CodeRevisionStatusSetter( $params[0], $params[1] );
8585 break;
8686 }
87 - throw new MWException( "Invalid action specified" );
 87+ $wgOut->addWikiText( wfMsg('nosuchactiontext') );
 88+ $wgOut->returnToMain( null, SpecialPage::getTitleFor( 'Code' ) );
 89+ return;
8890 }
8991 }
9092 $view->execute();

Status & tagging log