Skip to content

Commit

Permalink
fix: remove pattern match error when exceptions come from calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Aug 9, 2024
1 parent 2f22905 commit dc3f921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ash/actions/read/calculations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,8 @@ defmodule Ash.Actions.Read.Calculations do
reraise e, __STACKTRACE__
else
{stacktrace_before, stacktrace_after} =
Enum.split_while(__STACKTRACE__, fn {module, :run_calculate, 4, _meta} ->
module != __MODULE__
Enum.split_while(__STACKTRACE__, fn {module, function, arity, _meta} ->
module != __MODULE__ && function == :run_calculate && arity == 4
end)

reraise e,
Expand Down

0 comments on commit dc3f921

Please sign in to comment.