Browse Source

print volume deletion error

pull/2252/head
Chris Lu 3 years ago
parent
commit
8828f485c0
  1. 2
      weed/shell/command_volume_tier_move.go

2
weed/shell/command_volume_tier_move.go

@ -136,7 +136,7 @@ func doVolumeTierMove(commandEnv *CommandEnv, writer io.Writer, vid needle.Volum
for _, loc := range locations {
if loc.Url != dst.dataNode.Id {
if err = deleteVolume(commandEnv.option.GrpcDialOption, vid, loc.Url); err != nil {
fmt.Fprintf(writer, "failed to delete volume %d on %s\n", vid, loc.Url)
fmt.Fprintf(writer, "failed to delete volume %d on %s: %v\n", vid, loc.Url, err)
}
}
}

Loading…
Cancel
Save