HTTP load generator, ApacheBench (ab) replacement
Go
consistent error messages
Jaana Burcu Dogan8941a817cfa1
diff --git a/hey.go b/hey.goindex 6e3890d..a0b4209 100644--- a/hey.go+++ b/hey.go@@ -122,11 +122,11 @@ func main() {q := *qif num <= 0 || conc <= 0 {- usageAndExit("n and c cannot be smaller than 1.")+ usageAndExit("-n and -c cannot be smaller than 1.")}if num < conc {- usageAndExit("n cannot be less than c")+ usageAndExit("-n cannot be less than -c.")}url := flag.Args()[0]@@ -137,7 +137,7 @@ func main() {header.Set("Content-Type", *contentType)// set any other additional headersif *headers != "" {- usageAndExit("flag '-h' is deprecated, please use '-H' instead.")+ usageAndExit("Flag '-h' is deprecated, please use '-H' instead.")}// set any other additional repeatable headersfor _, h := range headerslice {