diff options
-rw-r--r-- | hugolib/pagination.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pagination.go b/hugolib/pagination.go index f5380a337..d5d409a36 100644 --- a/hugolib/pagination.go +++ b/hugolib/pagination.go @@ -286,7 +286,7 @@ func toPages(seq interface{}) (Pages, error) { case PageGroup: return (seq.(PageGroup)).Pages, nil default: - return nil, errors.New(fmt.Sprintf("unsupported type in paginate, got %T", seq)) + return nil, fmt.Errorf("unsupported type in paginate, got %T", seq) } } |