Skip to content

Commit 597082c

Browse files
authored
fix error (#15)
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
1 parent aa116cb commit 597082c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chproducer/methods.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ func (h *Handler) expandTO(ctx context.Context, channelTO string) (model.StatusK
430430
err := h.poolController.Expand(ctx, channelTO)
431431
if err != nil {
432432
if errMsg := re.FindString(err.Error()); errMsg != "" {
433-
return model.ErrorChannelToNotFound, errors.Errorf("expand : channel TO: %w", errors.New(errMsg))
433+
return model.ErrorChannelToNotFound, errors.Errorf("expand : channel TO: %w", err)
434434
}
435435
return model.InternalErrorTransferStatus, errors.Errorf("expand: %w", err)
436436
}

0 commit comments

Comments
 (0)