From d91eb40df213b49bb168d21f5ffdfe9d8d879054 Mon Sep 17 00:00:00 2001 From: Srlion Date: Tue, 8 Oct 2024 14:04:42 +0300 Subject: [PATCH] Add check to make sure that the error is not from gluatest, woopsie --- lua/gluatest/runner/helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gluatest/runner/helpers.lua b/lua/gluatest/runner/helpers.lua index 57dbaad..d29acae 100644 --- a/lua/gluatest/runner/helpers.lua +++ b/lua/gluatest/runner/helpers.lua @@ -152,7 +152,7 @@ local function findStackInfo( thread, caseFunc, reason ) local lastInfoLevel, lastInfo for level = 0, 20 do local info = debug.getinfo( thread, level, "nSl" ) - if info and info.short_src ~= "[C]" then + if info and info.short_src ~= "[C]" and not string.match( info.short_src, "/lua/gluatest/" ) then lastInfoLevel, lastInfo = level, info break end