Skip to content

Commit

Permalink
fix(elixir/1.15): suppress dialyzer warning about handle_errors/2 fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
joshlarson committed Nov 30, 2023
1 parent 5f4b908 commit d73582f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/skate_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ defmodule SkateWeb.Router do
use SkateWeb, :router
use Plug.ErrorHandler
use Sentry.Plug
# Dialyzer expects any module with `use Plug.ErrorHandler` to
# implement a `handle_errors` function. `Sentry.Plug` implements
# that function, but Dialyzer isn't aware of that. Because of that,
# we suppress the warning here.
@dialyzer {:nowarn_function, handle_errors: 2}

# We prefer to redirect at the load balancer level, but for security through
# redundancy, we're keeping this plug just in case.
Expand Down

0 comments on commit d73582f

Please sign in to comment.