Skip to content

Commit 9d7e0ad

Browse files
gloursmilas
authored andcommitted
correct scale error messages formatting
Co-authored-by: Milas Bowman <[email protected]> Signed-off-by: Guillaume Lours <[email protected]>
1 parent 1a98a70 commit 9d7e0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/compose/scale.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ func parseServicesReplicasArgs(args []string) (map[string]int, error) {
9595
for _, arg := range args {
9696
key, val, ok := strings.Cut(arg, "=")
9797
if !ok || key == "" || val == "" {
98-
return nil, errors.Errorf("Invalide scale specifier %q.", arg)
98+
return nil, errors.Errorf("invalid scale specifier: %s", arg)
9999
}
100100
intValue, err := strconv.Atoi(val)
101101

102102
if err != nil {
103-
return nil, errors.Errorf("Invalide scale specifier, can't parse replicate value to int %q.", arg)
103+
return nil, errors.Errorf("invalid scale specifier: can't parse replica value as int: %v", arg)
104104
}
105105
serviceReplicaTuples[key] = intValue
106106
}

0 commit comments

Comments
 (0)