[PATCH] improve error message

John W. Eaton jwe at octave.org
Thu Jan 15 15:58:44 CST 2009


On 21-Oct-2008, Robert Millan wrote:

| This small patch would have saved me a few hours of debugging, so I thought
| it would be useful to have it in the package.  It improves error messages
| for a few reshape() calls.

I checked in a slightly different change so that the messages will
give the full dimensions instead of just the number of elements.  For
example,

  octave:1> reshape (ones (1, 2, 3), [1, 3, 3])
  error: reshape: can't reshape 1x2x3 array to 1x3x3 array

Thanks,

jwe


More information about the Bug-octave mailing list