mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-15 08:02:42 +00:00
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
350 B
Go
19 lines
350 B
Go
package jobs
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/warmbly/warmbly/internal/observability/errs"
|
|
)
|
|
|
|
func CaptureError(userID, emailID uuid.UUID, err error) {
|
|
if errors.Is(err, ErrSyncArrivalPending) {
|
|
return
|
|
}
|
|
errs.CaptureException(err,
|
|
errs.Tag("user_id", userID.String()),
|
|
errs.Tag("email_id", emailID.String()),
|
|
)
|
|
}
|