puppetlabs/puppet · error · ArgumentError

%{value} is not a good copyright year or range

Error message

%{value} is not a good copyright year or range

What it means

Error "%{value} is not a good copyright year or range" thrown in puppetlabs/puppet.

Source

Thrown at lib/puppet/interface/documentation.rb:334

        if fault then
          # TRANSLATORS 'copyright' is an attribute name and should not be translated
          raise ArgumentError, _("copyright with a year %{value} is very strange; did you accidentally add or subtract two years?") %
                               { value: fault }
        end

        input

      when String then
        input.strip.split(/,/).map do |part|
          part = part.strip
          if part =~ /^\d+$/
            part.to_i
          else
            found = part.split(/-/)
            if found
              unless found.length == 2 and found.all? { |x| x.strip =~ /^\d+$/ }
                # TRANSLATORS 'copyright' is an attribute name and should not be translated
                raise ArgumentError, _("%{value} is not a good copyright year or range") % { value: part.inspect }
              end

              Range.new(found[0].to_i, found[1].to_i)
            else
              # TRANSLATORS 'copyright' is an attribute name and should not be translated
              raise ArgumentError, _("%{value} is not a good copyright year or range") % { value: part.inspect }
            end
          end
        end

      when Array then
        result = []
        input.each do |item|
          item = munge_copyright_year item
          if item.is_a? Array
            result.concat item
          else
            result << item

View on GitHub (pinned to e227c27540)

When it happens

Trigger: Thrown at lib/puppet/interface/documentation.rb:334 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of puppetlabs/puppet@e227c27540 (2026-08-21). Data as JSON: /api/errors/419b5265d854c72f. Report an issue: GitHub.