diff scripts/plot/isonormals.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 95c3e38098bf
children 693e22af08ae
line wrap: on
line diff
--- a/scripts/plot/isonormals.m	Sun May 16 18:28:59 2010 -0700
+++ b/scripts/plot/isonormals.m	Sun May 16 22:26:54 2010 -0700
@@ -98,7 +98,7 @@
     if (strcmp (lower (varargin{nargin}), "negate"))
       negate = true;
     else
-      error ("Unknown option '%s'", varargin{nargin});
+      error ("isonormals: Unknown option '%s'", varargin{nargin});
     endif
   endif
   switch na
@@ -124,7 +124,7 @@
     pa = vp;
     v = get (pa, "Vertices");
   else
-    error ("Last argument is no vertex list and no patch handle");
+    error ("isonormals: Last argument is not a vertex list or a patch handle");
   endif
   if (negate)
     normals = -__interp_cube__ (x, y, z, c, v, "normals");