From 0084ca31f4fc9fe0ae70d16ce373d6707c81800b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 23 Oct 2014 14:01:10 +0800 Subject: [PATCH] . --- output/outputs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/outputs.go b/output/outputs.go index 2fc7243..0d0d62e 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -272,7 +272,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) { if nil != session.OutputWS[sid] { // 在前端 output 中显示“开始构建” - channelRet["output"] = i18n.Get(r, "start-build").(string) + "\n" + channelRet["output"] = "" + i18n.Get(r, "start-build").(string) + "\n" channelRet["cmd"] = "start-build" wsChannel := session.OutputWS[sid] @@ -311,7 +311,7 @@ func BuildHandler(w http.ResponseWriter, r *http.Request) { channelRet["executable"] = executable if 0 == count { // 说明构建成功,没有错误信息输出 - // 设置下一次执行命令(前端会根据这个发送请求) + // 设置下一次执行命令(前端会根据该参数发送请求) channelRet["nextCmd"] = args["nextCmd"] channelRet["output"] = i18n.Get(r, "build-succ").(string) + "\n"