1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

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

This commit is contained in:
Carlos J. Herrera 2021-09-06 10:22:15 -04:00 committed by GitHub
parent e439b10209
commit fbfdf45102
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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