Include class where error originated

This commit is contained in:
Chris Roberts 2022-07-11 15:09:21 -07:00
parent e082fd6359
commit 2572d4f62b

View File

@ -154,7 +154,7 @@ module VagrantPlugins
result = func.call(*args)
if !result.is_a?(output)
raise TypeError,
"Expected output type of `#{output}', got `#{result.class}'"
"Expected output type of `#{output}', got `#{result.class}' (in #{self.class})"
end
result
end