Skip to content

Commit c85be19

Browse files
committed
Fix dialyzer reporting unmatched_return on use Sentry.PlugCapture.
That happens because Sentry.capture_exception is returning multiple values.
1 parent 893e2e9 commit c85be19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sentry/plug_capture.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ defmodule Sentry.PlugCapture do
3939
rescue
4040
e in Plug.Conn.WrapperError ->
4141
exception = Exception.normalize(:error, e.reason, e.stack)
42-
Sentry.capture_exception(exception, stacktrace: e.stack, event_source: :plug)
42+
_ = Sentry.capture_exception(exception, stacktrace: e.stack, event_source: :plug)
4343
Plug.Conn.WrapperError.reraise(e)
4444

4545
e ->
46-
Sentry.capture_exception(e, stacktrace: __STACKTRACE__, event_source: :plug)
46+
_ = Sentry.capture_exception(e, stacktrace: __STACKTRACE__, event_source: :plug)
4747
:erlang.raise(:error, e, __STACKTRACE__)
4848
end
4949
end

0 commit comments

Comments
 (0)