Skip to content

Commit

Permalink
Rescue all exceptions in SourceFile.formatter_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Nov 13, 2020
1 parent 51791ef commit 43811f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/language_server/lib/language_server/source_file.ex
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ defmodule ElixirLS.LanguageServer.SourceFile do

{:ok, opts}
rescue
e in Mix.Error ->
IO.warn("Unable to get formatter options for #{path}: #{e.message}")
e ->
IO.warn("Unable to get formatter options for #{path}: #{inspect(e.__struct__)} #{e.message}")
:error
end
end
Expand Down

0 comments on commit 43811f5

Please # to comment.