Include value in error message when mappers not found

This commit is contained in:
Chris Roberts 2022-04-06 14:12:41 -07:00 committed by Paul Hinze
parent 61b5d3549f
commit 2f9daa8498
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -377,7 +377,7 @@ module VagrantPlugins
end
if m.empty?
raise ArgumentError,
"FuncSpec value of type `#{v.class}' has no valid mappers"
"FuncSpec value of type `#{v.class}' has no valid mappers (#{v})"
end
result = m.first.call(v)
logger.trace { "converted funcspec argument #{v} -> #{result}" }