Skip to content

Commit 5042002

Browse files
committed
Fix condition
1 parent bd34eb0 commit 5042002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/error_tracker.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ defmodule ErrorTracker do
112112

113113
ignorer = Application.get_env(:error_tracker, :ignorer)
114114

115-
if ignorer && !ignorer.ignore?(error, context) do
115+
if is_nil(ignorer) || !ignorer.ignore?(error, context) do
116116
{_error, occurrence} = upsert_error!(error, stacktrace, context, reason)
117117
occurrence
118118
end

0 commit comments

Comments
 (0)