diff src/pt-colon.cc @ 8011:3100283874d7

improve backtrace error messages
author John W. Eaton <jwe@octave.org>
date Tue, 05 Aug 2008 23:09:32 -0400
parents 71f068b22fcc
children d5e08881bba8
line wrap: on
line diff
--- a/src/pt-colon.cc
+++ b/src/pt-colon.cc
@@ -184,11 +184,7 @@
 void
 tree_colon_expression::eval_error (const std::string& s) const
 {
-  if (! s.empty ())
-    ::error ("%s", s.c_str ());
-
-  ::error ("evaluating colon expression near line %d column %d",
-	   line (), column ());
+  ::error ("%s", s.c_str ());
 }
 
 int