Explorar o código

@gtardif @rumpl Use %q instead of \"%s\"

Co-authored-by: Djordje Lukic <[email protected]>
Guillaume Tardif %!s(int64=5) %!d(string=hai) anos
pai
achega
da3c3dab1c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      azure/backend.go

+ 1 - 1
azure/backend.go

@@ -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 {
 	groupName, containerName := getGroupAndContainerName(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)
 	if err != nil {