diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 08:18:11 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-02-01 08:18:11 +0100 |
commit | 1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e (patch) | |
tree | 48ff8aa0174826fcc248404a3c6303a3ff710773 /hugolib/page__output.go | |
parent | 156f08de351a3148f59fd010930d33d5ffaabf43 (diff) | |
download | hugo-1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e.tar.gz hugo-1891d5e6b5575e3abb7e0f80c3fbce1670f9bd5e.zip |
hugolib: Add some more details to the "paginator not supported" error
See #11949
Diffstat (limited to 'hugolib/page__output.go')
-rw-r--r-- | hugolib/page__output.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page__output.go b/hugolib/page__output.go index 02956e87c..9050766d1 100644 --- a/hugolib/page__output.go +++ b/hugolib/page__output.go @@ -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()) }) } |