aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/paginator_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-01 08:18:11 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-01 08:18:11 +0100
commit1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e (patch)
tree48ff8aa0174826fcc248404a3c6303a3ff710773 /hugolib/paginator_test.go
parent156f08de351a3148f59fd010930d33d5ffaabf43 (diff)
downloadhugo-1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e.tar.gz
hugo-1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e.zip
hugolib: Add some more details to the "paginator not supported" error
See #11949
Diffstat (limited to 'hugolib/paginator_test.go')
-rw-r--r--hugolib/paginator_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/paginator_test.go b/hugolib/paginator_test.go
index 919f532ca..8075c0a5a 100644
--- a/hugolib/paginator_test.go
+++ b/hugolib/paginator_test.go
@@ -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"`))
}