common/herrors: Fix the deferred error message cleaner regexp

Make it less gready.
This commit is contained in:
Bjørn Erik Pedersen 2024-10-19 10:00:01 +02:00
parent 42f37b4e98
commit f5e54d9c7d
No known key found for this signature in database

View file

@ -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) {