# HG changeset patch # User Matthew Wild # Date 1607530942 0 # Node ID de91b7cb73428602f9e20541e7c300f46d2828c1 # Parent 26bc1ae88ccbfc3868baefadc9601b38c505fcc1 mod_sentry: Fix to correctly iterate over traceback diff -r 26bc1ae88ccb -r de91b7cb7342 mod_sentry/sentry.lib.lua --- a/mod_sentry/sentry.lib.lua Wed Dec 09 16:22:04 2020 +0000 +++ b/mod_sentry/sentry.lib.lua Wed Dec 09 16:22:22 2020 +0000 @@ -70,8 +70,8 @@ }; local traceback = e.context.traceback; if traceback and type(traceback) == "table" then - for i = #traceback, 1 do local frames = array(); + for i = #traceback, 1, -1 do local frame = traceback[i]; table.insert(frames, { ["function"] = frame.info.name;