mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Improve error message for unclosed shortcode with inner content
This commit is contained in:
committed by
GitHub
parent
34a86e13f6
commit
9818724b5b
@@ -689,7 +689,7 @@ Loop:
|
||||
case currItem.IsDone():
|
||||
if !currItem.IsError() {
|
||||
if !closed && sc.needsInner() {
|
||||
return sc, fmt.Errorf("%s: unclosed shortcode %q", errorPrefix, sc.name)
|
||||
return sc, fmt.Errorf("%s: shortcode %q must be closed or self-closed", errorPrefix, sc.name)
|
||||
}
|
||||
}
|
||||
// handled by caller
|
||||
|
Reference in New Issue
Block a user