Rivet.Utils.Errors (rivet_utils v2.0.8)
View SourceHelper module for working with ok/error tuples
Summary
Functions
@spec changeset_errors_to_map(Ecto.Changeset.t()) :: map()
@spec errors_to_list(Ecto.Changeset.t()) :: [String.t()]
@spec format_changeset( result :: term() | {:error, Ecto.Changeset.t()} | Ecto.Changeset.t() ) :: term() | {:error, String.t()} | String.t()