diff modules/stdlib/lib/puppet/parser/functions/intersection.rb @ 424:4a2ee7e3b110

Update stdlib in case it fixed deprecation
author IBBoard <dev@ibboard.co.uk>
date Sun, 09 Oct 2022 10:34:32 +0100
parents d9352a684e62
children adf6fe9bbc17
line wrap: on
line diff
--- a/modules/stdlib/lib/puppet/parser/functions/intersection.rb	Sun Oct 09 10:34:07 2022 +0100
+++ b/modules/stdlib/lib/puppet/parser/functions/intersection.rb	Sun Oct 09 10:34:32 2022 +0100
@@ -22,7 +22,7 @@
     second = arguments[1]
 
     unless first.is_a?(Array) && second.is_a?(Array)
-      raise(Puppet::ParseError, 'intersection(): Requires 2 arrays')
+      raise(Puppet::ParseError, "intersection(): Requires 2 arrays, got #{first.class} and #{second.class}")
     end
 
     result = first & second