mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
hugolib: Add some more details to the "paginator not supported" error
See #11949
This commit is contained in:
@@ -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())
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user