Skip to content

Commit

Permalink
common/herrors: Fix the deferred error message cleaner regexp
Browse files Browse the repository at this point in the history
Make it less gready.
  • Loading branch information
bep committed Oct 19, 2024
1 parent 42f37b4 commit f5e54d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/herrors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f5e54d9

Please sign in to comment.