Improve error message for unclosed shortcode with inner content

This commit is contained in:
Andreas Deininger
2023-03-10 18:41:17 +01:00
committed by GitHub
parent 34a86e13f6
commit 9818724b5b
2 changed files with 2 additions and 2 deletions

View File

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