nargchk.m - obsolete(?) error message

John W. Eaton jwe at octave.org
Fri May 15 11:09:35 CDT 2009


On 15-May-2009, John W. Eaton wrote:

| But it doesn't quite work right either.  For
| example, I see:
| 
|   octave:1> nargchk (2, 4, 5, "struct") 
|   ans =
|   {
|     message = too many input arguments
|     identifier = Octave:nargchk:too-many-inputs
|   }
| 
|   octave:2> error (nargchk (2, 4, 5, "struct"))
|   error: unspecified error
| 
| but I think the call to error should print
| 
|   error: too maany input arguments
| 
| instead of "unspecified error".

OK, this was not too hard to fix, so I checked in the following
change.

  http://hg.savannah.gnu.org/hgweb/octave/rev/ba7f45642ffe

jwe


More information about the Bug-octave mailing list