-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
For example:
defp compute_temperature(json) do
try do
temp = (json["main"]["temp"] - 273.15) |> Float.round(1)
{:ok, temp}
raise ArgumentError, message: "invalid argument foo"
rescue
error ->
IO.puts "Error! in #{__MODULE__} #{inspect error}"
:error
end
end
The final :error
should have the same indentation as the IO.puts
statement. However, elixir-mode indents it as follows:
defp compute_temperature(json) do
try do
temp = (json["main"]["temp"] - 273.15) |> Float.round(1)
{:ok, temp}
raise ArgumentError, message: "invalid argument foo"
rescue
error ->
IO.puts "Error! in #{__MODULE__} #{inspect error}"
:error
end
end
Notice that the final :error
is incorrectly indented.
hexedpackets
Metadata
Metadata
Assignees
Labels
No labels