changeset 10609:58bcda68ac11

improve warning/error message
author John W. Eaton <jwe@octave.org>
date Thu, 06 May 2010 08:02:07 -0400
parents f9860b622680
children f5f6bde82e19
files src/ChangeLog src/ov-range.cc
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu May 06 13:32:08 2010 +0200
+++ b/src/ChangeLog	Thu May 06 08:02:07 2010 -0400
@@ -1,3 +1,8 @@
+2010-05-06  John W. Eaton  <jwe@octave.org>
+
+	* ov-range.cc (octave_range::index_vector):
+	Improve warning/error message.
+
 2010-05-06  Jaroslav Hajek  <highegg@gmail.com>
 
 	* DLD-FUNCTIONS/sqrtm.cc (sqrtm_utri_inplace, do_sqrtm): New helper
--- a/src/ov-range.cc	Thu May 06 13:32:08 2010 +0200
+++ b/src/ov-range.cc	Thu May 06 08:02:07 2010 -0400
@@ -156,7 +156,7 @@
       else
         {
           warning_with_id ("Octave:allow-noninteger-ranges-as-indices",
-                           "rounding non-integer range used as index to nearest integer");
+                           "non-integer range used as index");
 
           return octave_value (matrix_value ()).round ().index_vector ();
         }