Replace string placeholder with double-quoted in error strings.

reviewable/pr2557/r10
Justin Scott 8 years ago
parent 57db3c61b4
commit 355942f4fb

@ -221,7 +221,7 @@ func (i *initCmd) run() error {
} }
return nil return nil
default: default:
return fmt.Errorf("unknown output format: %s", i.opts.Output) return fmt.Errorf("unknown output format: %q", i.opts.Output)
} }
} }
if settings.Debug { if settings.Debug {

@ -136,7 +136,7 @@ func parseNodeSelectorsInto(labels string, m map[string]string) error {
if len(el) == 2 { if len(el) == 2 {
m[el[0]] = el[1] m[el[0]] = el[1]
} else { } else {
return fmt.Errorf("invalid nodeSelector label: %s", kv) return fmt.Errorf("invalid nodeSelector label: %q", kv)
} }
} }
return nil return nil

Loading…
Cancel
Save