File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ defmodule ErrorTracker do
197
197
defp ignored? ( error , context ) do
198
198
ignorer = Application . get_env ( :error_tracker , :ignorer )
199
199
200
- ignorer && ! ignorer . ignore? ( error , context )
200
+ ignorer && ignorer . ignore? ( error , context )
201
201
end
202
202
203
203
defp normalize_exception ( % struct { } = ex , _stacktrace ) when is_exception ( ex ) do
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ defmodule ErrorTracker.IgnorerTest do
6
6
end
7
7
8
8
test "ignores errors" do
9
- refute report_error ( fn -> raise "[IGNORE] Sample error" end )
10
- assert report_error ( fn -> raise "Sample error" end )
9
+ assert :noop = report_error ( fn -> raise "[IGNORE] Sample error" end )
10
+ assert % ErrorTracker.Occurrence { } = report_error ( fn -> raise "Sample error" end )
11
11
end
12
12
end
13
13
You can’t perform that action at this time.
0 commit comments