Browse Source

disallow cli creating new group for empty server

pull/71/head
Dan Ballard 1 year ago
parent
commit
d1035fd925
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/cli/main.go

+ 1
- 1
app/cli/main.go View File

@@ -309,7 +309,7 @@ func main() {
fmt.Printf("Error inviting peer to group, usage: %s\n", usages["invite-to-group"])
}
case "new-group":
if len(commands) == 2 {
if len(commands) == 2 && commands[1] != "" {
fmt.Printf("Setting up a new group on server:%v\n", commands[1])
id, _, err := app.Peer.StartGroup(commands[1])
if err == nil {


Loading…
Cancel
Save