Skip to content

Commit

Permalink
fix: properly format thrown value
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 19, 2024
1 parent e854409 commit 818a20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/tower_honeybadger/honeybadger/notice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ defmodule TowerHoneybadger.Honeybadger.Notice do

def from_tower_event(%Tower.Event{
kind: :throw,
reason: reason,
reason: value,
stacktrace: stacktrace,
plug_conn: plug_conn
}) do
error_notice("(throw)", reason, stacktrace, plug_conn)
error_notice("(throw)", inspect(value), stacktrace, plug_conn)
end

def from_tower_event(%Tower.Event{
Expand Down
2 changes: 1 addition & 1 deletion test/tower_honeybadger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ defmodule TowerHoneybadgerTest do
%{
"error" => %{
"class" => "(throw)",
"message" => "something",
"message" => "\"something\"",
"backtrace" => backtrace_entries
},
"server" => %{
Expand Down

0 comments on commit 818a20c

Please sign in to comment.