better error message

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@125002 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Xavier Noguer Gallego 2003-04-28 21:37:32 +00:00
parent 1355ab654f
commit 87620f27a6
1 changed files with 2 additions and 1 deletions

View File

@ -1378,7 +1378,8 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR
$this->_advance(); // eat the "," $this->_advance(); // eat the ","
} }
else { else {
return($this->raiseError("Sintactic error: coma expected $num_args")); return new PEAR_Error("Sintactic error: coma expected in ".
"function $function, {$num_args}º arg"));
} }
$result2 = $this->_condition(); $result2 = $this->_condition();
if($this->isError($result2)) { if($this->isError($result2)) {