Skip to content

Commit

Permalink
[PWX-34442] Update Error message, remove labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rkinhalkar-px committed Nov 16, 2023
1 parent 93127db commit 11ba178
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"strings"

"github.com/libopenstorage/openstorage/api"
"github.com/libopenstorage/openstorage/pkg/parser"
)

var (
Expand Down Expand Up @@ -56,7 +55,7 @@ func (e *ErrStoragePoolResizeInProgress) Error() string {
if e.Pool.LastOperation != nil {
op := e.Pool.LastOperation
if op.Type == api.SdkStoragePool_OPERATION_RESIZE {
errMsg = fmt.Sprintf("%s %s %s", errMsg, op.Msg, parser.LabelsToString(op.Params))
errMsg = fmt.Sprintf("%s %s %s", errMsg, op.Msg)
}
}

Expand Down

0 comments on commit 11ba178

Please sign in to comment.