diff scripts/plot/__axis_label__.m @ 7654:48edf48cd4dc

__axis_label__: use name of caller in error message
author John W. Eaton <jwe@octave.org>
date Thu, 27 Mar 2008 13:26:06 -0400
parents a1dbe9d80eee
children 5bf8a57f85d5 72830070a17b
line wrap: on
line diff
--- a/scripts/plot/__axis_label__.m
+++ b/scripts/plot/__axis_label__.m
@@ -38,7 +38,7 @@
       retval = h;
     endif
   else
-    error ("%s: expecting first argument to be character string");
+    error ("%s: expecting first argument to be character string", caller);
   endif
 
 endfunction