Skip to content

Commit

Permalink
rescue system limit error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jan 21, 2024
1 parent 7bd06ec commit e4c0282
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/elixir_sense/core/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,13 @@ defmodule ElixirSense.Core.Introspection do
# erlang module or `Elixir`
mod
end
rescue
e in SystemLimitError ->
Logger.warning(
"Unable to expand alias #{inspect(mod)}; env aliases #{inspect(aliases)}: #{Exception.blame(:error, e, __STACKTRACE__)}"
)

mod
end

@spec actual_mod_fun(
Expand Down

0 comments on commit e4c0282

Please sign in to comment.