hugolib: Add some more details to the "paginator not supported" error

See #11949
This commit is contained in:
Bjørn Erik Pedersen
2024-02-01 08:18:11 +01:00
parent 156f08de35
commit 1891d5e6b5
3 changed files with 10 additions and 2 deletions

View File

@@ -168,5 +168,5 @@ Paginator: {{ .Paginator }}
`
b, err := TestE(t, files)
b.Assert(err, qt.IsNotNil)
b.Assert(err.Error(), qt.Contains, `error calling Paginator: pagination not supported for pages of kind "page"`)
b.Assert(err.Error(), qt.Contains, `error calling Paginator: pagination not supported for this page: kind: "page", path: "/p1", file: `+filepath.FromSlash(`"/content/p1.md"`))
}