1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

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

This commit is contained in:
Alejandro Huertas Herrero 2020-09-10 10:29:22 +02:00 committed by GitHub
parent fa536dc4fa
commit 2c48d0185b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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