Skip to content

Commit

Permalink
fixes error assertion if case
Browse files Browse the repository at this point in the history
  • Loading branch information
JyotinderSingh committed Nov 17, 2024
1 parent 76b0ea6 commit f2267bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func (w *BaseWorker) executeCommand(ctx context.Context, diceDBCmd *cmd.DiceDBCm
var customErr *diceerrors.PreProcessError
if errors.As(err, &customErr) {
workerErr = w.ioHandler.Write(ctx, customErr.Result)
} else {
workerErr = w.ioHandler.Write(ctx, err)
}
if workerErr != nil {
slog.Debug("Error executing for worker", slog.String("workerID", w.id), slog.Any("error", workerErr))
Expand Down

0 comments on commit f2267bd

Please sign in to comment.