diff scripts/plot/ishold.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 0d9640d755b1
line wrap: on
line diff
--- a/scripts/plot/ishold.m
+++ b/scripts/plot/ishold.m
@@ -40,10 +40,10 @@
         ax = h;
         fig = get (h, "parent");
       else
-        error ("hold: expecting argument to be axes or figure graphics handle");
+        error ("ishold: expecting argument to be axes or figure graphics handle");
       endif
     else
-      error ("hold: expecting argument to be axes or figure graphics handle");
+      error ("ishold: expecting argument to be axes or figure graphics handle");
     endif
   else
     print_usage ();