F #~: add more info when not find files (#1440)

This commit is contained in:
Carlos J. Herrera authored and GitHub committed 2021-09-06 16:22:15 +02:00
1 parent e439b10209
commit fbfdf45102
1 file changed
+6 -2
@@ -558,8 +558,12 @@ module VCenterDriver
raise 'Could not get file size or capacity' if size.nil?
size
rescue StandardError
raise 'Could not find file.'
rescue StandardError => e
message = "Could not find file. Reason: \"#{e.message}\"."
if VCenterDriver::CONFIG[:debug_information]
message += ' ' + e.backtrace
end
raise message
end
end