Show error message if script not accessible
This commit is contained in:
parent
8a886882b7
commit
4bf5eb73bc
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user