mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
common/herrors: Fix the deferred error message cleaner regexp
Make it less gready.
This commit is contained in:
parent
42f37b4e98
commit
f5e54d9c7d
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ var nilPointerErrRe = regexp.MustCompile(`at <(.*)>: error calling (.*?): runtim
|
||||||
|
|
||||||
const deferredPrefix = "__hdeferred/"
|
const deferredPrefix = "__hdeferred/"
|
||||||
|
|
||||||
var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*" `)
|
var deferredStringToRemove = regexp.MustCompile(`executing "__hdeferred/.*?" `)
|
||||||
|
|
||||||
// ImproveRenderErr improves the error message for rendering errors.
|
// ImproveRenderErr improves the error message for rendering errors.
|
||||||
func ImproveRenderErr(inErr error) (outErr error) {
|
func ImproveRenderErr(inErr error) (outErr error) {
|
||||||
|
|
Loading…
Reference in a new issue