mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 01:18:02 +00:00
log a traceback only once
This commit is contained in:
1 parent
3e79d8324d
commit
6a4e0bd43a
1 file changed
+7
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user