1. Miki Tebeka
  2. go-play

Commits

Miki Tebeka  committed 6ec069d

Better error

  • Participants
  • Parent commits 2c1c303
  • Branches default

Comments (0)

Files changed (1)

File nc.go

View file
 	case "client":
 		client()
 	default:
-		panic(fmt.Sprintf("unknown command %s", flag.Arg(0)))
+		panic(fmt.Sprintf(
+			"unknown command %s (user either 'server' or 'client'",
+			flag.Arg(0)))
 	}
 }