eview v0.2.7 EView.ErrorView

Error view that can be used in Phoenix:

config :myapp, MyApp.Endpoint,
  render_errors: [view: EView.ErrorView, accepts: ~w(json)]

Summary

Functions

This render will be used by-default for internal errors. You can use it in your controller

Functions

render(binary, assigns)

This render will be used by-default for internal errors. You can use it in your controller:

  conn |> render("500.json", error_description)