Skip to content

Commit

Permalink
Improve removeFramesRecursively errors
Browse files Browse the repository at this point in the history
  • Loading branch information
inancgumus committed Jun 5, 2024
1 parent d64e0b5 commit 736e87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/frame_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,12 @@ func (m *FrameManager) removeFramesRecursively(frame *Frame) error {
m.ID(), child.ID(), frame.ID(), child.Name(), child.URL())

if err := m.removeFramesRecursively(child); err != nil {
return fmt.Errorf("removing child frames recursively: %w", err)
return fmt.Errorf("removing frames recursively: %w", err)
}
}

if err := frame.detach(); err != nil {
return fmt.Errorf("removing frames recursively: %w", err)
return fmt.Errorf("removing frames recursively: detaching frame: %w", err)
}

m.framesMu.Lock()
Expand Down

0 comments on commit 736e87e

Please sign in to comment.