mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-21 10:41:03 +00:00
hugolib: Correct usage of "shortcode" in error messages
This commit is contained in:
parent
1b46d2cfee
commit
01ee525f47
3 changed files with 3 additions and 3 deletions
|
@ -167,7 +167,7 @@ func HandleShortcodes(stringToParse string, page *Page, t tpl.Template) (string,
|
||||||
tmpContentWithTokensReplaced, err := replaceShortcodeTokens([]byte(tmpContent), shortcodePlaceholderPrefix, shortcodes)
|
tmpContentWithTokensReplaced, err := replaceShortcodeTokens([]byte(tmpContent), shortcodePlaceholderPrefix, shortcodes)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", fmt.Errorf("Fail to replace short code tokens in %s:\n%s", page.BaseFileName(), err.Error())
|
return "", fmt.Errorf("Failed to replace shortcode tokens in %s:\n%s", page.BaseFileName(), err.Error())
|
||||||
}
|
}
|
||||||
return string(tmpContentWithTokensReplaced), nil
|
return string(tmpContentWithTokensReplaced), nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue