diff --git a/lib/tower_rollbar/rollbar/client.ex b/lib/tower_rollbar/rollbar/client.ex index ce3a868..35dc045 100644 --- a/lib/tower_rollbar/rollbar/client.ex +++ b/lib/tower_rollbar/rollbar/client.ex @@ -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 @@ -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