Skip to content

Commit b44fc5a

Browse files
Copilotcschleiden
andcommitted
Revert stack trace skip logic change as requested
Co-authored-by: cschleiden <[email protected]>
1 parent c834fa9 commit b44fc5a

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(3+skip, stack[:])
16+
length := runtime.Callers(2+skip, stack[:])
1717

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

0 commit comments

Comments
 (0)