Fix up error message.

This commit is contained in:
Andrew Garrett 2009-01-25 05:41:58 +00:00
parent 7c210e7849
commit 2d1056858d

View file

@ -556,7 +556,7 @@ class AbuseFilterParser {
$func = self::$mFunctions[$this->mCur->value];
$this->move();
if( $this->mCur->type != AFPToken::TBrace || $this->mCur->value != '(' )
throw new AFPException( "Expected ( at char {$this->mCur->value}" );
throw new AFPException( "Expected ( at char {$this->mCur->pos} (got a '{$this->mCur->value}')" );
wfProfileIn( __METHOD__."-loadargs" );
$args = array();
do {