Skip to content

Commit d26c616

Browse files
committed
dialyzer
1 parent 007e9fd commit d26c616

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/sentry.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ defmodule Sentry do
112112
Parses and submits an exception to Sentry if current environment is in included_environments.
113113
`opts` argument is passed as the second argument to `Sentry.send_event/2`.
114114
"""
115-
@spec capture_exception(Exception.t(), Keyword.t()) :: send_result
115+
@spec capture_exception(Exception.t() | atom() | {atom(), atom()}, Keyword.t()) :: send_result
116116
def capture_exception(exception, opts \\ []) do
117117
filter_module = Config.filter()
118118
{source, opts} = Keyword.pop(opts, :event_source)

lib/sentry/client.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ defmodule Sentry.Client do
156156
Hackney options can be set via the `hackney_opts` configuration option.
157157
"""
158158
@spec request(String.t(), list({String.t(), String.t()}), String.t()) ::
159-
{:ok, String.t()} | :error
159+
{:ok, String.t()} | {:error, term()}
160160
def request(url, headers, body) do
161161
hackney_opts =
162162
Config.hackney_opts()

0 commit comments

Comments
 (0)