Use reraise and __STACKTRACE__ to reraise safe_insert_all errors

Fixes #1238

`reraise` is the current accepted idiom for reraising, not `raise` alone
as it preserves the original stacktrace.
pull/1239/head
Luke Imhoff 6 years ago
parent 7d8ddf9061
commit 29d945b9b6
  1. 2
      apps/explorer/lib/explorer/repo.ex

@ -57,7 +57,7 @@ defmodule Explorer.Repo do
Logger.configure(truncate: old_truncate) Logger.configure(truncate: old_truncate)
# reraise to kill caller # reraise to kill caller
raise exception reraise exception, __STACKTRACE__
end end
if returning do if returning do

Loading…
Cancel
Save