mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 20:06:19 +08:00
add some error messages for args
related to https://github.com/seaweedfs/seaweedfs/issues/4115
This commit is contained in:
@@ -41,6 +41,12 @@ func (c *commandVolumeUnmount) Do(args []string, commandEnv *CommandEnv, writer
|
||||
if err = volUnmountCommand.Parse(args); err != nil {
|
||||
return nil
|
||||
}
|
||||
if *nodeStr == "" {
|
||||
return fmt.Errorf("-node option is required")
|
||||
}
|
||||
if *volumeIdInt == 0 {
|
||||
return fmt.Errorf("-volumeId option is required")
|
||||
}
|
||||
|
||||
if err = commandEnv.confirmIsLocked(args); err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user