<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<font face="Courier New">Dear All,<br>
<br>
I'm trying to use the error messages available at
<a class="moz-txt-link-freetext" href="https://help.scilab.org/docs/6.0.2/en_US/error_table.html">https://help.scilab.org/docs/6.0.2/en_US/error_table.html</a><br>
<br>
However, I cannot find one that describes precisely what is wrong.<br>
<br>
My argument is any scalar, vector, matrix or N-D array of real or
complex numbers.<br>
<br>
If I use<br>
<br>
"%s: Argument #%d: Decimal or complex number expected.\n"<br>
<br>
it may convey the idea that only scalars are admissible. I think
the word "number" jeopardizes the message. It would be better if
the word "type" were clearly mentioned, for instance "Wrong input
type: %d expected.\n"<br>
<br>
If I use<br>
<br>
"%s: Argument #%d: Hypermatrix expected.\n"<br>
<br>
it may be interpreted as if, for instance, a polynomial
hypermatrix would be acceptable.<br>
<br>
Testing abs() on a string yields<br>
<br>
--> abs("hello")<br>
in builtin abs <br>
<br>
Function not defined for given argument type(s),<br>
check arguments or define function %c_abs for overloading.<br>
<br>
This gives a hint where is the problem, but does not indicate what
type is expected, which would be more useful.<br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
</font>
</body>
</html>