]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(Main) fix typo in pick error message
authorMatthew Haughton <3flex@users.noreply.github.com>
Tue, 29 Oct 2013 18:21:03 +0000 (14:21 -0400)
committerJosh Cooper <josh@puppetlabs.com>
Tue, 29 Oct 2013 19:01:25 +0000 (12:01 -0700)
Update pick error message "at least one non empty value"

lib/puppet/parser/functions/pick.rb
spec/unit/puppet/parser/functions/pick_spec.rb [changed mode: 0644->0755]

index e9e5d66a8608a36488f7e589ea7b1c3c17e37a42..fdd0aefd7225a5566d9c8334701aa30c7372efc7 100644 (file)
@@ -21,7 +21,7 @@ EOS
    args.delete(:undefined)
    args.delete("")
    if args[0].to_s.empty? then
-     fail Puppet::ParseError, "pick(): must receive at last one non empty value"
+     fail Puppet::ParseError, "pick(): must receive at least one non empty value"
    else
      return args[0]
    end
old mode 100644 (file)
new mode 100755 (executable)
index d2b275f..f53fa80
@@ -29,6 +29,6 @@ describe "the pick function" do
   end
 
   it 'should error if no values are passed' do
-    expect { scope.function_pick([]) }.to( raise_error(Puppet::ParseError, "pick(): must receive at last one non empty value"))
+    expect { scope.function_pick([]) }.to( raise_error(Puppet::ParseError, "pick(): must receive at least one non empty value"))
   end
 end