mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2025-02-28 08:21:52 -05:00
Colorized error for pagination.rb
This commit is contained in:
parent
5012652fb2
commit
9a9c4a09b1
@ -1,3 +1,5 @@
|
||||
require File.expand_path('../../lib/colors.rb', __FILE__)
|
||||
|
||||
module Jekyll
|
||||
|
||||
class Pagination < Generator
|
||||
@ -88,7 +90,7 @@ module Jekyll
|
||||
@previous_page = nil
|
||||
|
||||
if @page > @total_pages
|
||||
raise RuntimeError, "page number can't be greater than total pages: #{@page} > #{@total_pages}"
|
||||
raise RuntimeError, "page number can't be greater than total pages: #{@page} > #{@total_pages}".red
|
||||
end
|
||||
|
||||
init = (@page - 1) * @per_page
|
||||
|
Loading…
x
Reference in New Issue
Block a user