From 87620f27a690d61fb340efa40ff68abb532dc3b0 Mon Sep 17 00:00:00 2001 From: Xavier Noguer Gallego Date: Mon, 28 Apr 2003 21:37:32 +0000 Subject: [PATCH] better error message git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@125002 c90b9560-bf6c-de11-be94-00142212c4b1 --- Writer/Parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Writer/Parser.php b/Writer/Parser.php index 2d7eef1..325318b 100644 --- a/Writer/Parser.php +++ b/Writer/Parser.php @@ -1378,7 +1378,8 @@ class Spreadsheet_Excel_Writer_Parser extends PEAR $this->_advance(); // eat the "," } 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(); if($this->isError($result2)) {