mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-18 17:57:24 +03:00
* B #3439: polish onevcenter tool, second Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems> * B #3439: show backtrace when debug_information is true Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
parent
4b882f1c07
commit
3a60e67657
@ -512,7 +512,9 @@ module VCenterDriver
|
||||
puts "\n"
|
||||
exit 0 #Ctrl+C
|
||||
rescue Exception => e
|
||||
STDOUT.puts " Error: #{e.message}/\n#{e.backtrace}"
|
||||
error_msg = "\nError: #{e.message}\n"
|
||||
error_msg << "#{e.backtrace}\n" if VCenterDriver::CONFIG[:debug_information]
|
||||
STDOUT.puts error_msg
|
||||
ensure
|
||||
vi_client.close_connection if vi_client
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user