Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcam-src committed Dec 16, 2024
1 parent 44b6a64 commit fe39396
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def link_to_specific_page(scope, name, page = 1 **options)
begin
# Validate inputs
raise ArgumentError, 'Scope is required and must respond to :total_pages' unless scope&.respond_to?(:total_pages)
raise ArgumentError, 'Page number must be a positive integer' unless page.is_a?(Integer) && page.positive?
raise ArgumentError, "Page number must be a positive integer - got #{page}" unless page.is_a?(Integer) && page.positive?

specific_page_path = path_to_specific_page(scope, page, options)

Expand Down

0 comments on commit fe39396

Please sign in to comment.