Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 12, 2024
1 parent e8239b6 commit 46ff57f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/bandit/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ defmodule Bandit.Telemetry do
untimed_span_event(span, :stop, measurements, metadata)
end

@spec span_exception(t(), Exception.kind(), Exception.t() | term(), Exception.stacktrace()) :: :ok
@spec span_exception(t(), Exception.kind(), Exception.t() | term(), Exception.stacktrace()) ::
:ok
def span_exception(span, :error, reason, stacktrace) when is_exception(reason) do
metadata =
Map.merge(span.start_metadata, %{
Expand Down
2 changes: 1 addition & 1 deletion test/bandit/http1/request_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ defmodule HTTP1RequestTest do
end

def throws(_conn) do
throw "something"
throw("something")
end

test "does not send an error response if the plug has already sent one before raising",
Expand Down

0 comments on commit 46ff57f

Please sign in to comment.