Skip to content

Commit

Permalink
style(error_json): run mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
crod951 committed Jan 10, 2025
1 parent 9a4519f commit 9ac1f9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/epochtalk_server_web/json/error_json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ defmodule EpochtalkServerWeb.Controllers.ErrorJSON do
defp format_error(status, message) when is_integer(status) and is_binary(message) do
%{
status: status,
message: if(Application.get_env(:epochtalk_server, :env) == :dev, do: "Something went wrong", else: message),
message:
if(Application.get_env(:epochtalk_server, :env) == :dev,
do: "Something went wrong",
else: message
),
error: Phoenix.Controller.status_message_from_template(to_string(status))
}
end
Expand Down

0 comments on commit 9ac1f9d

Please sign in to comment.