fix file reference in panics (#2726)

#### Does this PR need a docs update or release note?

- [x]  No

#### Type of change

- [x] 🐛 Bugfix

#### Test Plan

- [x] 💪 Manual
This commit is contained in:
Keepers 2023-03-07 18:07:28 -07:00 committed by GitHub
parent 476af95daa
commit 30d9705829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}