If you’re trying to debug what’s happening you should use IO.inspect instead of IO.puts:
def call(conn, {:error, changeset}) do
IO.inspect(changeset, label: "changeset")
IO.inspect(conn, label: "conn")
end
More info at:
If you’re trying to debug what’s happening you should use IO.inspect instead of IO.puts:
def call(conn, {:error, changeset}) do
IO.inspect(changeset, label: "changeset")
IO.inspect(conn, label: "conn")
end
More info at: