We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dde9b9 commit 05c4c22Copy full SHA for 05c4c22
lib/sentry/config.ex
@@ -502,6 +502,13 @@ defmodule Sentry.Config do
502
@compile {:inline, fetch!: 1}
503
defp fetch!(key) do
504
:persistent_term.get({:sentry_config, key})
505
+ rescue
506
+ ArgumentError ->
507
+ raise """
508
+ the Sentry configuration seems to be not available (while trying to fetch \
509
+ #{inspect(key)}). This is likely because the :sentry application has not been started yet. \
510
+ Make sure that you start the :sentry application before using any of its functions.
511
+ """
512
end
513
514
0 commit comments