Files
firezone/elixir/apps/web/lib/web/live_errors.ex
Jamil d2fd57a3b6 fix(portal): Attach Sentry in each umbrella app (#8749)
- Attaches the Sentry Logging hook in each of [api, web, domain]
- Removes errant Sentry logging configuration in config/config.exs
- Fixes the exception logger to default to logging exceptions, use
`skip_sentry: true` to skip

Tested successfully in dev. Hopefully the cluster behaves the same way.

Fixes #8639
2025-04-11 04:17:12 +00:00

22 lines
558 B
Elixir

defmodule Web.LiveErrors do
defmodule NotFoundError do
defexception message: "Not Found", skip_sentry: false
defimpl Plug.Exception do
def status(_exception), do: 404
def actions(_exception), do: []
end
end
# this is not a styled error because only security scanners that
# try to manipulate the request will see it
defmodule InvalidParamsError do
defexception message: "Unprocessable Entity"
defimpl Plug.Exception do
def status(_exception), do: 422
def actions(_exception), do: []
end
end
end