r46186 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46185‎ | r46186 | r46187 >
Date:05:41, 25 January 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix up error message.
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.parser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php
@@ -556,7 +556,7 @@
557557 $func = self::$mFunctions[$this->mCur->value];
558558 $this->move();
559559 if( $this->mCur->type != AFPToken::TBrace || $this->mCur->value != '(' )
560 - throw new AFPException( "Expected ( at char {$this->mCur->value}" );
 560+ throw new AFPException( "Expected ( at char {$this->mCur->pos} (got a '{$this->mCur->value}')" );
561561 wfProfileIn( __METHOD__."-loadargs" );
562562 $args = array();
563563 do {

Status & tagging log