diff libinterp/interpfcn/toplev.cc @ 15244:c16357c4bdbb

attempt to display location of out of memory errors in interpreted code * pt-eval.cc (tree_evaluator::visit_statement): Handle std::bad_alloc exception here. * toplev.cc (main_loop): Simplify out-of-memory error message. * octave.cc (safe_source_file): Don't handle std::bad_alloc here. (execute_eval_option_code): Likewise. * ov-oncleanup.cc (octave_oncleanup::~octave_oncleanup): Likewise.
author John W. Eaton <jwe@octave.org>
date Tue, 28 Aug 2012 11:00:53 -0400
parents a83b7b2f95ee
children 648dabbb4c6b
line wrap: on
line diff
--- a/libinterp/interpfcn/toplev.cc	Tue Aug 28 09:42:48 2012 -0400
+++ b/libinterp/interpfcn/toplev.cc	Tue Aug 28 11:00:53 2012 -0400
@@ -653,7 +653,7 @@
         {
           recover_from_exception ();
           std::cerr
-            << "error: memory exhausted or requested size too large for range of Octave's index type -- trying to return to prompt"
+            << "error: out of memory -- trying to return to prompt"
             << std::endl;
         }
     }