diff options
author | Andreas Deininger <adeininger@urbanonline.de> | 2023-03-10 18:41:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-10 18:41:17 +0100 |
commit | 9818724b5bcba42205c107e5aa1765359516598f (patch) | |
tree | 79f7a2c0fc40d9aadac22dcfdc1df2047d843352 /hugolib/shortcode_test.go | |
parent | 34a86e13f63c1a527e45b5de95696c6937c2043e (diff) |
Improve error message for unclosed shortcode with inner content
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index eac3de2ce..67c83f44e 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -1274,5 +1274,5 @@ Inner: {{ .Get 0 }}: {{ len .Inner }} ).BuildE() b.Assert(err, qt.Not(qt.IsNil)) - b.Assert(err.Error(), qt.Contains, `p1.md:5:1": failed to extract shortcode: unclosed shortcode "sc"`) + b.Assert(err.Error(), qt.Contains, `p1.md:5:1": failed to extract shortcode: shortcode "sc" must be closed or self-closed`) } |