Browse code

Make the version mismatch message more explicit.

Signed-off-by: Raghuram Devarakonda <draghuram@gmail.com>

Raghuram Devarakonda authored on 2015/05/29 06:54:48
Showing 1 changed files
... ...
@@ -1444,7 +1444,7 @@ func makeHttpHandler(logging bool, localMethod string, localRoute string, handle
1444 1444
 		}
1445 1445
 
1446 1446
 		if version.GreaterThan(api.APIVERSION) {
1447
-			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)
1447
+			http.Error(w, fmt.Errorf("client is newer than server (client API version: %s, server API version: %s)", version, api.APIVERSION).Error(), http.StatusBadRequest)
1448 1448
 			return
1449 1449
 		}
1450 1450