From 73521422bea32cc8d14491b271bf96ebb2625a9c Mon Sep 17 00:00:00 2001 From: David Dollar Date: Thu, 19 Jun 2014 18:57:47 -0400 Subject: [PATCH] better error message for concurrency --- start.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.go b/start.go index 4fe38b1..f88eee4 100644 --- a/start.go +++ b/start.go @@ -50,13 +50,13 @@ func parseConcurrency(value string) (map[string]int, error) { parts := strings.Split(value, ",") for _, part := range parts { if !strings.Contains(part, "=") { - return concurrency, errors.New("Parsing concurency") + return concurrency, errors.New("Concurrency should be in the format: foo=1,bar=2") } nameValue := strings.Split(part, "=") n, v := strings.TrimSpace(nameValue[0]), strings.TrimSpace(nameValue[1]) if n == "" || v == "" { - return concurrency, errors.New("Parsing concurency") + return concurrency, errors.New("Concurrency should be in the format: foo=1,bar=2") } numProcs, err := strconv.ParseInt(v, 10, 16)