vendored/puppet/lib/puppet/interface.rb in bolt-0.15.0 vs vendored/puppet/lib/puppet/interface.rb in bolt-0.16.0
- old
+ new
@@ -147,10 +147,10 @@
private :loader
# @api private
def initialize(name, version, &block)
unless SemanticPuppet::Version.valid?(version)
- raise ArgumentError, "Cannot create face #{name.inspect} with invalid version number '#{version}'!"
+ raise ArgumentError, _("Cannot create face %{name} with invalid version number '%{version}'!") % { name: name.inspect, version: version }
end
@name = Puppet::Interface::FaceCollection.underscorize(name)
@version = SemanticPuppet::Version.parse(version)