Skip to content

Commit 52d32cf

Browse files
committed
fixup! Updates Sentry.Sources to support multiple source code root paths
1 parent efc26fa commit 52d32cf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/sentry/config.ex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ defmodule Sentry.Config do
7777
get_config(:enable_source_code_context, default: false, check_dsn: false)
7878
end
7979

80+
@deprecated "Use root_source_code_paths/0 instead"
81+
def root_source_code_path do
82+
path = get_config(:root_source_code_path)
83+
84+
if path do
85+
path
86+
else
87+
raise ArgumentError.exception(":root_source_code_path must be configured")
88+
end
89+
end
90+
8091
# :root_source_code_path (single path) was replaced by :root_source_code_paths (list of
8192
# paths).
8293
#

0 commit comments

Comments
 (0)