This commit is contained in:
Klaas Pieter Annema committed 2011-02-25 23:57:29 +01:00
commit 3ebb432d3f
1 file changed
+7 -4
+7 -4
View File
@@ -102,10 +102,13 @@ GLOBAL(objj_backtrace_decorator) = function(msgSend)
}
catch (anException)
{
// print the exception and backtrace
CPLog.warn("Exception " + anException + " in " + objj_debug_message_format(aReceiver, aSelector));
objj_backtrace_print(CPLog.warn);
if (objj_backtrace.length)
{
// print the exception and backtrace
CPLog.warn("Exception " + anException + " in " + objj_debug_message_format(aReceiver, aSelector));
objj_backtrace_print(CPLog.warn);
objj_backtrace = [];
}
// re-throw the exception
throw anException;
}