From 30d9705829bd5b962cc9320510aa98757062fdde Mon Sep 17 00:00:00 2001 From: Keepers Date: Tue, 7 Mar 2023 18:07:28 -0700 Subject: [PATCH] fix file reference in panics (#2726) #### Does this PR need a docs update or release note? - [x] :no_entry: No #### Type of change - [x] :bug: Bugfix #### Test Plan - [x] :muscle: Manual --- src/internal/common/crash/crash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/common/crash/crash.go b/src/internal/common/crash/crash.go index f54434fbc..2936c2efc 100644 --- a/src/internal/common/crash/crash.go +++ b/src/internal/common/crash/crash.go @@ -37,7 +37,7 @@ func Recovery(ctx context.Context, r any) error { err = clues.New(fmt.Sprintf("%v", r)) } - _, file, _, ok := runtime.Caller(2) + _, file, _, ok := runtime.Caller(3) if ok { inFile = " in file: " + file }