From b69cea466f091a5b47e27af71190788ab9f4253f Mon Sep 17 00:00:00 2001 From: Guillaume Lours <705411+glours@users.noreply.github.com> Date: Thu, 7 Sep 2023 23:30:44 +0200 Subject: [PATCH] correct scale error messages formatting Co-authored-by: Milas Bowman Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com> --- cmd/compose/scale.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/compose/scale.go b/cmd/compose/scale.go index 97b95e65c79..5c8142c7390 100644 --- a/cmd/compose/scale.go +++ b/cmd/compose/scale.go @@ -95,12 +95,12 @@ func parseServicesReplicasArgs(args []string) (map[string]int, error) { for _, arg := range args { key, val, ok := strings.Cut(arg, "=") if !ok || key == "" || val == "" { - return nil, errors.Errorf("Invalide scale specifier %q.", arg) + return nil, errors.Errorf("invalid scale specifier: %s", arg) } intValue, err := strconv.Atoi(val) if err != nil { - return nil, errors.Errorf("Invalide scale specifier, can't parse replicate value to int %q.", arg) + return nil, errors.Errorf("invalid scale specifier: can't parse replica value as int: %v", arg) } serviceReplicaTuples[key] = intValue }