This commit is contained in:
Liang Ding 2014-09-09 17:02:08 +08:00
parent c9bf81388d
commit 1a8cf37b3c
1 changed files with 1 additions and 3 deletions

View File

@ -338,9 +338,7 @@ func GoInstallHandler(w http.ResponseWriter, r *http.Request) {
channelRet["output"] = string(buf[:count])
channelRet["cmd"] = "go install"
if 0 == count { // 说明构建成功,没有错误信息输出
glog.Info("go install succ")
} else { // 构建失败
if 0 != count { // 构建失败
// 解析错误信息,返回给编辑器 gutter lint
lines := strings.Split(string(buf[:count]), "\n")[1:]
lints := []map[string]interface{}{}