diff src/variables.cc @ 10444:537d9fbba9c0

don't call missing_function_hook inside try block
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 24 Mar 2010 13:10:36 +0100
parents 34e51d4e199b
children 13c1f15c67fa
line wrap: on
line diff
--- a/src/variables.cc	Wed Mar 24 12:56:18 2010 +0100
+++ b/src/variables.cc	Wed Mar 24 13:10:36 2010 +0100
@@ -2392,6 +2392,7 @@
 
 void maybe_missing_function_hook (const std::string& name)
 {
-  if (! Vmissing_function_hook.empty ())
+  // Don't do this if we're handling errors.
+  if (buffer_error_messages == 0 && ! Vmissing_function_hook.empty ())
     feval (Vmissing_function_hook, octave_value (name));
 }