Skip to content

Commit

Permalink
Docs: Add parens to File.cwd! to prevent confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasose authored May 27, 2019
1 parent 01b5361 commit 0d8ade9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sentry/sources.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule Sentry.Sources do
* `:enable_source_code_context` - when `true`, enables reporting source code
alongside exceptions.
* `:root_source_code_path` - The path from which to start recursively reading files from.
Should usually be set to `File.cwd!`.
Should usually be set to `File.cwd!()`.
* `:context_lines` - The number of lines of source code before and after the line that
caused the exception to be included. Defaults to `3`.
* `:source_code_exclude_patterns` - a list of Regex expressions used to exclude file paths that
Expand All @@ -28,7 +28,7 @@ defmodule Sentry.Sources do
config :sentry,
dsn: "https://public:secret@app.getsentry.com/1",
enable_source_code_context: true,
root_source_code_path: File.cwd!,
root_source_code_path: File.cwd!(),
context_lines: 5
### Source code storage
Expand Down

0 comments on commit 0d8ade9

Please sign in to comment.