Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jul 30, 2024
1 parent 3b44e2c commit 15247dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tower.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ defmodule Tower do
:ok = Tower.LoggerHandler.detach()
end

def handle_exception(exception, stacktrace, meta \\ %{})
def handle_exception(exception, stacktrace, meta)
when is_exception(exception) and is_list(stacktrace) do
Event.from_exception(exception, stacktrace, meta)
|> report_event()
end

def handle_throw(reason, stacktrace, metadata \\ %{}) do
def handle_throw(reason, stacktrace, metadata) do
Event.from_throw(reason, stacktrace, metadata)
|> report_event()
end

def handle_exit(reason, stacktrace, metadata \\ %{}) do
def handle_exit(reason, stacktrace, metadata) do
Event.from_exit(reason, stacktrace, metadata)
|> report_event()
end
Expand Down

0 comments on commit 15247dc

Please sign in to comment.