Mercurial > octave-nkf
diff scripts/plot/specular.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 | dbd0c77e575e |
children | be55736a0783 |
line wrap: on
line diff
--- a/scripts/plot/specular.m Sun May 16 18:28:59 2010 -0700 +++ b/scripts/plot/specular.m Sun May 16 22:26:54 2010 -0700 @@ -58,7 +58,7 @@ ## Check for view vector (vv) argument. if (length (vv) < 2 || length (lv) > 3) - error ("view vector VV must be a 2- or 3-element vector"); + error ("specular: view vector VV must be a 2- or 3-element vector"); elseif (length (vv) == 2) [vv(1), vv(2), vv(3)] = sph2cart (vv(1) * pi / 180, vv(2) * pi / 180, 1.0); endif