Skip to content

Commit c834fa9

Browse files
Copilotcschleiden
andcommitted
Fix stack trace skip logic in workflowerrors package
Co-authored-by: cschleiden <[email protected]>
1 parent a804cc5 commit c834fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/workflowerrors/stack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const MaxStackDepth = 50
1313
func stack(skip int) string {
1414
// get stack
1515
stack := make([]uintptr, MaxStackDepth)
16-
length := runtime.Callers(2+skip, stack[:])
16+
length := runtime.Callers(3+skip, stack[:])
1717

1818
// trim
1919
stack = stack[:length]

0 commit comments

Comments
 (0)