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

@@ -47,7 +47,7 @@ func newPageOutput(
paginatorProvider = pag
} else {
paginatorProvider = page.PaginatorNotSupportedFunc(func() error {
return fmt.Errorf("pagination not supported for pages of kind %q", ps.Kind())
return fmt.Errorf("pagination not supported for this page: %s", ps.getPageInfoForError())
})
}