Skip to content

Commit

Permalink
Add more information to anonymous rescue hint (#13641)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiwara committed Jun 6, 2024
1 parent b0459d2 commit cabd7d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/elixir/lib/module/types/helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ defmodule Module.Types.Helpers do
"""
#{hint()} when you rescue without specifying exception names, \
the variable is assigned a type of a struct but all of its fields are unknown
the variable is assigned a type of a struct but all of its fields are unknown. \
If you are trying to access an exception's :message key, either specify the \
exception names or use `Exception.message/1`.
"""
end)
end
Expand Down

0 comments on commit cabd7d8

Please sign in to comment.