diff src/toplev.cc @ 8704:236ff50db90f

load-path.cc: catch execution exception in getcwd
author John W. Eaton <jwe@octave.org>
date Mon, 09 Feb 2009 13:23:09 -0500
parents 33783e94fb16
children 679c270b7584
line wrap: on
line diff
--- a/src/toplev.cc	Mon Feb 09 12:33:47 2009 -0500
+++ b/src/toplev.cc	Mon Feb 09 13:23:09 2009 -0500
@@ -605,6 +605,13 @@
 	  recover_from_exception ();
 	  octave_stdout << "\n";
 	}
+      catch (octave_execution_exception)
+	{
+	  recover_from_exception ();
+	  std::cerr
+	    << "error: unhandled execution exception -- trying to return to prompt"
+	    << std::endl;
+	}
       catch (std::bad_alloc)
 	{
 	  recover_from_exception ();