MikaAK/ecto_shorts

EctoShorts.Action.Error.create_error/3 is undefined

WindDrifter opened this issue · 2 comments

Got this error when I tried to run find with an id doesn't exist:
(UndefinedFunctionError) function EctoShorts.Action.Error.create_error/3 is undefined (module EctoShorts.Action.Error is not available)

Recreation steps:
EctoShorts.Actions.find(User, %{id: removed_id})

Forgot to mention is ecto_shorts version 0.1.7

Issue solve, have to ensure config/config.exs error_module is EctoShorts.Actions.Errors

config :ecto_shorts,
  repo: App.Repo,
  error_module: EctoShorts.Actions.Error