enhance: sent graphs-txid in sentry events

This commit is contained in:
Tienson Qin
2022-11-30 13:09:24 +08:00
committed by Andelf
parent c2befe6c00
commit 39d23a8671
2 changed files with 9 additions and 3 deletions

View File

@@ -29,7 +29,8 @@ and handles unexpected failure."
:date-formatter (state/get-date-formatter)})
(catch :default e
(log/error :exception e)
(Sentry/captureException e)
(state/pub-event! [:capture-error {:error e
:payload {:type "Extract-blocks"}}])
(notification/show! "An unexpected error occurred during block extraction." :error)
[])))