Use %q instead of \"%s\"

Co-authored-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Guillaume Tardif 2020-07-03 15:39:44 +02:00 committed by GitHub
parent 568dc6de23
commit 0dcab4004d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ func (cs *aciContainerService) List(ctx context.Context, _ bool) ([]containers.C
func (cs *aciContainerService) Run(ctx context.Context, r containers.ContainerConfig) error {
if strings.Contains(r.ID, composeContainerSeparator) {
return errors.New(fmt.Sprintf(`invalid container name. ACI container name cannot include "%s"`, composeContainerSeparator))
return errors.New(fmt.Sprintf("invalid container name. ACI container name cannot include %q", composeContainerSeparator))
}
var ports []types.ServicePortConfig