# HG changeset patch # User jbe # Date 1427399107 -3600 # Node ID a74e62c965011561d385cd68eb37ab6230ce89f0 # Parent 545ec2e3eafa5f3f094528876ae4fa63407df35c Bugfix in trace.error{}: close all open sections to show timings diff -r 545ec2e3eafa -r a74e62c96501 framework/env/trace/error.lua --- a/framework/env/trace/error.lua Thu Mar 26 20:19:54 2015 +0100 +++ b/framework/env/trace/error.lua Thu Mar 26 20:45:07 2015 +0100 @@ -9,8 +9,8 @@ function trace.error(args) if not trace._disabled then trace._new_entry { type = "error" } - local closed_section = trace._close_section() - closed_section.hard_error = true -- TODO: not used, maybe remove - trace._stack = { trace._tree } + while #trace._stack > 1 do + trace._close_section() + end end end