puppetlabs/puppet · error · ArgumentError
copyright takes the owners names, then the years covered
Error message
copyright takes the owners names, then the years covered
What it means
Error "copyright takes the owners names, then the years covered" thrown in puppetlabs/puppet.
Source
Thrown at lib/puppet/interface/documentation.rb:255
end
alias :authors= :author=
# Sets the copyright owner and year. This returns the copyright
# string, so it can be called with no arguments retrieve that string
# without side effects.
# @param owner [String, Array<String>] The copyright owner or an
# array of owners
# @param years [Integer, Range<Integer>, Array<Integer,Range<Integer>>]
# The copyright year or years. Years can be specified with integers,
# a range of integers, or an array of integers and ranges of
# integers.
# @return [String] A string describing the copyright on this object.
# @api public
# @dsl Faces
def copyright(owner = nil, years = nil)
if years.nil? and !owner.nil? then
# TRANSLATORS 'copyright' is an attribute name and should not be translated
raise ArgumentError, _('copyright takes the owners names, then the years covered')
end
self.copyright_owner = owner unless owner.nil?
self.copyright_years = years unless years.nil?
if copyright_years or copyright_owner then
"Copyright #{copyright_years} by #{copyright_owner}"
else
"Unknown copyright owner and years."
end
end
# Sets the copyright owner
# @param value [String, Array<String>] The copyright owner or
# owners.
# @return [String] Comma-separated list of copyright owners
# @api private
attr_reader :copyright_ownerView on GitHub (pinned to e227c27540)
When it happens
Trigger: Thrown at lib/puppet/interface/documentation.rb:255 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/380c52d43164e941.
Report an issue: GitHub.