Skip to content

Commit

Permalink
crash the server if crypto app is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Dec 24, 2023
1 parent e3ac554 commit 8d7fa04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/language_server/lib/language_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@ defmodule ElixirLS.LanguageServer do
def check_otp_install_complete do
try do
:io_lib.format(~c"~p", [[1]])
:crypto.strong_rand_bytes(1)
:ok
rescue
e in ErlangError ->
e in [ErlangError, UndefinedFunctionError] ->
Logger.error(Exception.message(e))
message = incomplete_installation_message()

Expand Down

0 comments on commit 8d7fa04

Please sign in to comment.