Mercurial > octave-nkf
diff scripts/time/datenum.m @ 10635:d1978e7364ad
Print name of function in error() string messages.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 16 May 2010 22:26:54 -0700 |
parents | bfd8d804e6d3 |
children | be55736a0783 |
line wrap: on
line diff
--- a/scripts/time/datenum.m Sun May 16 18:28:59 2010 -0700 +++ b/scripts/time/datenum.m Sun May 16 22:26:54 2010 -0700 @@ -80,7 +80,7 @@ if (nargin == 1) nc = columns (Y); if (nc > 6 || nc < 3) - error ("expected date vector containing [Y, M, D, h, m, s]"); + error ("datenum: expected date vector containing [Y, M, D, h, m, s]"); endif s = m = h = 0; if (nc >= 6) s = Y(:,6); endif