__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 |
d9eb2aec6d84 |
children |
ea2344c4140b |
files |
scripts/ChangeLog scripts/plot/__axis_label__.m |
diffstat |
2 files changed, 5 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-27 John W. Eaton <jwe@octave.org>
+
+ * plot/__axis_label__.m: Use name of caller in error message.
+
2008-03-27 David Bateman <dbateman@free.fr>
* linear-algebra/planerot.m: Givens rotation function.
--- 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