From c6a0b5053e20602a6399975230efb0b1c4dffeb2 Mon Sep 17 00:00:00 2001 From: Omry Mendelovich <16597193+omryMen@users.noreply.github.com> Date: Wed, 1 May 2024 17:36:08 +0300 Subject: [PATCH] wrap with string (#515) --- src/common/gitservice/git_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/gitservice/git_service.go b/src/common/gitservice/git_service.go index f254247d..ce76a64b 100644 --- a/src/common/gitservice/git_service.go +++ b/src/common/gitservice/git_service.go @@ -145,7 +145,7 @@ func wrapGitBlame(selectedCommit *object.Commit, relativeFilePath string) (blame // currently there's a bug inside go-git so in order to mitigate it we wrap it with recover defer func() { if r := recover(); r != nil { - fmt.Println("Recovered in f", r, debug.Stack()) + fmt.Println("Recovered in f", r, string(debug.Stack())) err = errors.Errorf("unknown panic, %v", r) } }()