From 736e87ed4942b8472c916516c4fa97c9ef373f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 5 Jun 2024 10:57:00 +0300 Subject: [PATCH] Improve removeFramesRecursively errors --- common/frame_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/frame_manager.go b/common/frame_manager.go index 96e11f855..ae41ef696 100644 --- a/common/frame_manager.go +++ b/common/frame_manager.go @@ -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()