From f5e54d9c7d6642ba5435e7342761f684c84f4b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 19 Oct 2024 10:00:01 +0200 Subject: [PATCH] common/herrors: Fix the deferred error message cleaner regexp Make it less gready. --- common/herrors/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/herrors/errors.go b/common/herrors/errors.go index e7f91462e..40833e55c 100644 --- a/common/herrors/errors.go +++ b/common/herrors/errors.go @@ -137,7 +137,7 @@ var nilPointerErrRe = regexp.MustCompile(`at <(.*)>: error calling (.*?): runtim const deferredPrefix = "__hdeferred/" -var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*" `) +var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*?" `) // ImproveRenderErr improves the error message for rendering errors. func ImproveRenderErr(inErr error) (outErr error) {