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)