@gtardif @rumpl 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:40:25 +02:00 committed by GitHub
parent 0dcab4004d
commit da3c3dab1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ func (cs *aciContainerService) Logs(ctx context.Context, containerName string, r
func (cs *aciContainerService) Delete(ctx context.Context, containerID string, _ bool) error { func (cs *aciContainerService) Delete(ctx context.Context, containerID string, _ bool) error {
groupName, containerName := getGroupAndContainerName(containerID) groupName, containerName := getGroupAndContainerName(containerID)
if groupName != containerID { if groupName != containerID {
return errors.New(fmt.Sprintf(`cannot delete service "%s" from compose app "%s", you must delete the entire compose app with docker compose down`, containerName, groupName)) return errors.New(fmt.Sprintf("cannot delete service %q from compose app %q, you must delete the entire compose app with docker compose down", containerName, groupName))
} }
cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName) cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName)
if err != nil { if err != nil {