mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
F #~: add more info when not find files (#1440)
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user