Skip to content

armgit / hey

Public Imported from GitHub
0

HTTP load generator, ApacheBench (ab) replacement

Go

consistent error messages

Jaana Burcu Dogan8941a817cfa1
diff --git a/hey.go b/hey.go
index 6e3890d..a0b4209 100644
--- a/hey.go
+++ b/hey.go
@@ -122,11 +122,11 @@ func main() {
q := *q
if 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 headers
if *headers != "" {
- usageAndExit("flag '-h' is deprecated, please use '-H' instead.")
+ usageAndExit("Flag '-h' is deprecated, please use '-H' instead.")
}
// set any other additional repeatable headers
for _, h := range headerslice {