From 47e130c4c067d0f5b199486114437db115fdc997 Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Tue, 8 Aug 2023 16:39:00 +0800 Subject: [PATCH] Fix typo --- tools/tui/loop/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tui/loop/api.go b/tools/tui/loop/api.go index d0623aa05..791e18d11 100644 --- a/tools/tui/loop/api.go +++ b/tools/tui/loop/api.go @@ -255,8 +255,8 @@ func (self *Loop) Run() (err error) { pcs := make([]uintptr, 256) n := runtime.Callers(2, pcs) frames := runtime.CallersFrames(pcs[:n]) - err = fmt.Errorf("Paniced: %s", r) - fmt.Fprintf(os.Stderr, "\r\nPaniced with error: %s\r\nStacktrace (most recent call first):\r\n", r) + err = fmt.Errorf("Panicked: %s", r) + fmt.Fprintf(os.Stderr, "\r\nPanicked with error: %s\r\nStacktrace (most recent call first):\r\n", r) found_first_frame := false for frame, more := frames.Next(); more; frame, more = frames.Next() { if !found_first_frame {