浏览代码

Merge pull request #13567 from draghuram/apiver

Make the version mismatch message more explicit.
Antonio Murdaca 10 年之前
父节点
当前提交
d79654d0f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/server/server.go

+ 1 - 1
api/server/server.go

@@ -1444,7 +1444,7 @@ func makeHttpHandler(logging bool, localMethod string, localRoute string, handle
 		}
 
 		if version.GreaterThan(api.APIVERSION) {
-			http.Error(w, fmt.Errorf("client and server don't have same version (client API version: %s, server API version: %s)", version, api.APIVERSION).Error(), http.StatusBadRequest)
+			http.Error(w, fmt.Errorf("client is newer than server (client API version: %s, server API version: %s)", version, api.APIVERSION).Error(), http.StatusBadRequest)
 			return
 		}