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 ab02160 commit 7ce3923Copy full SHA for 7ce3923
lib/sentry/config.ex
@@ -83,12 +83,14 @@ defmodule Sentry.Config do
83
84
@deprecated "Use root_source_code_paths/0 instead"
85
def root_source_code_path do
86
- path = get_config(:root_source_code_path, check_dsn: false)
87
-
88
- if path do
+ if path = get_config(:root_source_code_path, check_dsn: false) do
89
path
90
else
91
- raise ArgumentError.exception(":root_source_code_path must be configured")
+ raise ArgumentError, """
+ you called Sentry.Config.root_source_code_path/0, but :root_source_code_path is \
+ not configured. root_source_code_path/0 is deprecated anyways, so you should \
92
+ use root_source_code_paths/0 (plural) instead, and configure :root_source_code_paths.\
93
+ """
94
end
95
96
0 commit comments