Skip to content

Commit

Permalink
mix format
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jun 11, 2024
1 parent 7171ac6 commit 440adc7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tower_rollbar/rollbar/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ defmodule TowerRollbar.Rollbar.Client do
cacerts: :public_key.cacerts_get()
]
end

Code.ensure_loaded?(CAStore) ->
# Support Erlang < 25
defp tls_client_options do
Expand All @@ -43,6 +44,7 @@ defmodule TowerRollbar.Rollbar.Client do
cacertfile: CAStore.file_path()
]
end

true ->
raise "Please include castore package in your dependencies to make tower_rollbar work for Erlang/OTP #{System.otp_release()} or upgrade to Erlang/OTP 25+"
end
Expand Down

0 comments on commit 440adc7

Please sign in to comment.