octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Changeset] Minor fix to __axis_label__.m


From: John W. Eaton
Subject: [Changeset] Minor fix to __axis_label__.m
Date: Thu, 27 Mar 2008 13:27:31 -0400

On 22-Mar-2008, Moritz Borgmann wrote:

| find attached a minor fix to error handling in __axis_label__.m.

I used the following change instead.

Thanks,

jwe


# HG changeset patch
# User John W. Eaton <address@hidden>
# Date 1206638766 14400
# Node ID 48edf48cd4dc65c20922f10b45ad1d97a75b60b4
# Parent  d9eb2aec6d8457b255b323fa6f8619233cf0e294
__axis_label__: use name of caller in error message

diff --git a/scripts/ChangeLog b/scripts/ChangeLog
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@ 2008-03-27  David Bateman  <address@hidden
+2008-03-27  John W. Eaton  <address@hidden>
+
+       * plot/__axis_label__.m: Use name of caller in error message.
+
 2008-03-27  David Bateman  <address@hidden>
 
        * linear-algebra/planerot.m: Givens rotation function.
diff --git a/scripts/plot/__axis_label__.m b/scripts/plot/__axis_label__.m
--- a/scripts/plot/__axis_label__.m
+++ b/scripts/plot/__axis_label__.m
@@ -38,7 +38,7 @@ function retval = __axis_label__ (caller
       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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]