@@ -55,10 +55,12 @@ func Salt(length int) string {
func CheckArgs() {
if len(os.Args) < 2 {
log.Fatalf("ERROR: port number required: eg ./bin 3000")
+ os.Exit(1)
}
_, err := strconv.Atoi(os.Args[1])
if err != nil {
log.Fatalf("ERROR: port must be a number")