Skip to content

Commit 3e2cfa9

Browse files
committed
update handle_errors/2 from defp to def
1 parent 3bda79e commit 3e2cfa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/app/router.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule App.Router do
2020
send_resp(conn, 404, "Oops!")
2121
end
2222

23-
defp handle_errors(conn, %{kind: kind, reason: reason, stack: stack}) do
23+
def handle_errors(conn, %{kind: kind, reason: reason, stack: stack}) do
2424
IO.inspect(kind, label: :kind)
2525
IO.inspect(reason, label: :reason)
2626
IO.inspect(stack, label: :stack)

0 commit comments

Comments
 (0)