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

B #5074: show error if attach file doesn't exist (#199)

(cherry picked from commit 2c48d0185b85ac65c1dc990d2f4d84d61add792d)
This commit is contained in:
Alejandro Huertas Herrero 2020-09-10 10:29:22 +02:00 committed by Ruben S. Montero
parent 66931b1623
commit 2bd844381d
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -100,7 +100,8 @@ class OneVMHelper < OpenNebulaHelper::OneHelper
if File.file?(o)
options[:file] = o
else
exit - 1
STDERR.puts "File `#{options[:file]}` doesn't exist"
exit(-1)
end
}
}