浏览代码

Merge pull request #595 from dotcloud/typo_error-fix

Small fix about the error in push
Guillaume J. Charmes 12 年之前
父节点
当前提交
9023db5c5d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api.go

+ 1 - 1
api.go

@@ -353,7 +353,7 @@ func postImagesPush(srv *Server, w http.ResponseWriter, r *http.Request, vars ma
 	defer in.Close()
 	fmt.Fprintf(out, "HTTP/1.1 200 OK\r\nContent-Type: application/vnd.docker.raw-stream\r\n\r\n")
 	if err := srv.ImagePush(name, registry, out); err != nil {
-		fmt.Fprintln(out, "Error: %s\n", err)
+		fmt.Fprintf(out, "Error: %s\n", err)
 	}
 	return nil
 }