Skip to content

Commit

Permalink
rpk: fix add-partition error handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vasquez committed Jul 6, 2022
1 parent 26b7d23 commit 1ed8a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/topic/add_partitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewAddPartitionsCommand(fs afero.Fs) *cobra.Command {
if errors.Is(e, kerr.InvalidPartitions) && num > 0 {
msg = fmt.Sprintf("INVALID_PARTITIONS: unable to add %d partitions due to hardware constraints", num)
} else {
msg = err.Error()
msg = e.Error()
}
exit1 = true
}
Expand Down

0 comments on commit 1ed8a26

Please sign in to comment.