We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3dd1de commit 0d49ce0Copy full SHA for 0d49ce0
lib/sentry/plug_capture.ex
@@ -38,7 +38,8 @@ defmodule Sentry.PlugCapture do
38
super(conn, opts)
39
rescue
40
e in Plug.Conn.WrapperError ->
41
- Sentry.capture_exception(e.reason, stacktrace: e.stack, event_source: :plug)
+ exception = Exception.normalize(:error, e.reason, e.stack)
42
+ Sentry.capture_exception(exception, stacktrace: e.stack, event_source: :plug)
43
Plug.Conn.WrapperError.reraise(e)
44
45
e ->
0 commit comments