Skip to content

Commit 744c35f

Browse files
committed
do not reraise if unable to format typespec
1 parent 04dae2b commit 744c35f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/elixir_sense/core/type_info.ex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,11 @@ defmodule ElixirSense.Core.TypeInfo do
231231
rescue
232232
e ->
233233
if Version.match?(System.version(), ">= 1.18.0-dev") do
234-
Logger.error(
235-
"Macro.to_string(#{inspect(sanitized)}) returned invalid code. Please report that to elixir project."
234+
Logger.warning(
235+
"Macro.to_string(#{inspect(sanitized)}) returned invalid code. If you believe this to be an error please report that to elixir project."
236236
)
237-
238-
reraise e, __STACKTRACE__
239-
else
240-
string
241237
end
238+
string
242239
end
243240

244241
string

0 commit comments

Comments
 (0)