瀏覽代碼

Use %q instead of \"%s\"

Co-authored-by: Djordje Lukic <[email protected]>
Guillaume Tardif 5 年之前
父節點
當前提交
0dcab4004d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      azure/backend.go

+ 1 - 1
azure/backend.go

@@ -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