Skip to content

Commit 3cca2d1

Browse files
committed
Pass the same exception for NoRouteError
1 parent c27a529 commit 3cca2d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sentry/phoenix_endpoint.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ defmodule Sentry.Phoenix.Endpoint do
2727
try do
2828
super(conn, opts)
2929
catch
30-
kind, %Phoenix.Router.NoRouteError{} ->
31-
:erlang.raise(kind, %Phoenix.Router.NoRouteError{}, __STACKTRACE__)
30+
kind, %Phoenix.Router.NoRouteError{} = reason ->
31+
:erlang.raise(kind, reason, __STACKTRACE__)
3232

3333
kind, reason ->
3434
stacktrace = __STACKTRACE__

0 commit comments

Comments
 (0)