Skip to content

Commit

Permalink
Fix panic
Browse files Browse the repository at this point in the history
  • Loading branch information
airenas committed Nov 24, 2023
1 parent b050f1e commit 0d55167
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/pkg/worker/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ func handleFailure(ctx context.Context, m *messages.ASRMessage, data *ServiceDat
if err != nil {
return fmt.Errorf("can't load status: %w", err)
}
if statusRec == nil {
return fmt.Errorf("no status record")
}
goapp.Log.Debug().Str("ID", m.ID).Msgf("loaded %v", statusRec)
if statusRec.Error.String != "" {
goapp.Log.Info().Str("ID", m.ID).Msg("error set - ignore")
Expand Down

0 comments on commit 0d55167

Please sign in to comment.