Show error message if script not accessible

This commit is contained in:
Patrick Lühne 2020-05-27 02:04:50 +02:00
parent 8a886882b7
commit 4bf5eb73bc
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,11 @@ if ARGV.length > 1
end
# TODO: support arguments
script_path = File.realpath(ARGV[0])
begin
script_path = File.realpath(ARGV[0])
rescue StandardError => error
log "error", "could not access #{ARGV[0]}"
end
control_socket_path = "/run/github-fast-env/github-fast-envd.sock"