Explorar o código

Make the version mismatch message more explicit.

Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com>
Raghuram Devarakonda %!s(int64=10) %!d(string=hai) anos
pai
achega
7b6f9da52c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {
 		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
 			return
 		}
 		}