Skip to content

Commit a9e6209

Browse files
Merge pull request #347 from mathiasose/patch-1
Docs: Add parens to File.cwd! to prevent confusion
2 parents 01b5361 + 0d8ade9 commit a9e6209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sentry/sources.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule Sentry.Sources do
1414
* `:enable_source_code_context` - when `true`, enables reporting source code
1515
alongside exceptions.
1616
* `:root_source_code_path` - The path from which to start recursively reading files from.
17-
Should usually be set to `File.cwd!`.
17+
Should usually be set to `File.cwd!()`.
1818
* `:context_lines` - The number of lines of source code before and after the line that
1919
caused the exception to be included. Defaults to `3`.
2020
* `:source_code_exclude_patterns` - a list of Regex expressions used to exclude file paths that
@@ -28,7 +28,7 @@ defmodule Sentry.Sources do
2828
config :sentry,
2929
dsn: "https://public:[email protected]/1",
3030
enable_source_code_context: true,
31-
root_source_code_path: File.cwd!,
31+
root_source_code_path: File.cwd!(),
3232
context_lines: 5
3333
3434
### Source code storage

0 commit comments

Comments
 (0)