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:
parent
476af95daa
commit
30d9705829
@ -37,7 +37,7 @@ func Recovery(ctx context.Context, r any) error {
|
|||||||
err = clues.New(fmt.Sprintf("%v", r))
|
err = clues.New(fmt.Sprintf("%v", r))
|
||||||
}
|
}
|
||||||
|
|
||||||
_, file, _, ok := runtime.Caller(2)
|
_, file, _, ok := runtime.Caller(3)
|
||||||
if ok {
|
if ok {
|
||||||
inFile = " in file: " + file
|
inFile = " in file: " + file
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user