We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785a418 commit ab3ba77Copy full SHA for ab3ba77
1 file changed
lib/error_tracker/plug.ex
@@ -4,13 +4,13 @@ defmodule ErrorTracker.Plug do
4
use Plug.ErrorHandler
5
6
@impl Plug.ErrorHandler
7
- def handle_errors(conn, %{kind: kind, reason: reason, stack: stack}) do
+ def handle_errors(conn, %{kind: :error, reason: exception, stack: stack}) do
8
+ ErrorTracker.report(exception, stack)
9
10
+ :ok
11
+ end
12
- dbg kind
- dbg reason
- dbg stack
13
-
+ def handle_errors(conn, _throw_or_exit) do
14
:ok
15
end
16
0 commit comments