From fe39396418aa78f1b990e2aefb95794411986da6 Mon Sep 17 00:00:00 2001 From: David Campbell Date: Mon, 16 Dec 2024 18:40:09 -0500 Subject: [PATCH] logging --- app/overrides/lib/kanamari/helpers/helper_methods_override.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/overrides/lib/kanamari/helpers/helper_methods_override.rb b/app/overrides/lib/kanamari/helpers/helper_methods_override.rb index f231f184f..6cb50f1d2 100644 --- a/app/overrides/lib/kanamari/helpers/helper_methods_override.rb +++ b/app/overrides/lib/kanamari/helpers/helper_methods_override.rb @@ -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)