Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion apps/expert/lib/expert/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,15 @@ defmodule Expert.Application do
[communication: {GenLSP.Communication.TCP, [port: opts[:port]]}]

true ->
IO.puts(
:stderr,
"FATAL: A transport argument (--stdio|--port <port>) must be provided, expert won't initialize."
)

IO.puts(help_text)

System.halt(1)
# Status code 2 is often used for invalid CLI argument
System.halt(2)
end

ensure_epmd_module!()
Expand Down
Loading