Index: trunk/extensions/AbuseFilter/AbuseFilter.parser.php |
— | — | @@ -556,7 +556,7 @@ |
557 | 557 | $func = self::$mFunctions[$this->mCur->value]; |
558 | 558 | $this->move(); |
559 | 559 | 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}')" ); |
561 | 561 | wfProfileIn( __METHOD__."-loadargs" ); |
562 | 562 | $args = array(); |
563 | 563 | do { |