From b3ce2c3cfe91358f59a00c42606c86bba4c25e6c Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 24 Mar 2004 18:37:58 +0000 Subject: [PATCH] Failed timers should log errors rather than silently eating them. --- src/Scripting/NasalSys.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 938c740e1..d198a3a06 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -506,6 +506,8 @@ void FGNasalSys::setTimer(naRef args) void FGNasalSys::handleTimer(NasalTimer* t) { naCall(_context, t->handler, naNil(), naNil(), naNil()); + if(naGetError(_context)) + logError(); gcRelease(t->gcKey); }