View Source Rivet.Utils.Ecto.Errors (rivet_utils v2.0.1)

Helper module for working with ok/error tuples

Contributor: Mark Erickson

Summary

Functions

Link to this function

changeset_errors_to_map(changeset)

View Source
@spec changeset_errors_to_map(Ecto.Changeset.t()) :: map()
Link to this function

convert_error_changeset(x)

View Source
Link to this function

errors_to_list(changeset)

View Source
@spec errors_to_list(Ecto.Changeset.t()) :: [String.t()]
Link to this function

format_changeset(changeset)

View Source
@spec format_changeset(
  result :: term() | {:error, Ecto.Changeset.t()} | Ecto.Changeset.t()
) ::
  term() | {:error, String.t()} | String.t()