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:
parent
e439b10209
commit
fbfdf45102
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user