mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-03-21 13:41:51 +00:00
Fixes issues from logs. Closes #4274 and similar issues for activities. Simplifies error handling for live tables (we just reset filters with a message when they are invalid because just showing an error 422 is not actionable).
13 lines
253 B
Elixir
13 lines
253 B
Elixir
defmodule Web.ErrorController do
|
|
use Web, :controller
|
|
|
|
def show(_conn, params) do
|
|
case params["code"] do
|
|
"404" -> raise Web.LiveErrors.NotFoundError
|
|
"500" -> raise "internal server error"
|
|
end
|
|
|
|
raise "unknown error"
|
|
end
|
|
end
|