Index: gm/rebaseline_server/static/loader.js |
diff --git a/gm/rebaseline_server/static/loader.js b/gm/rebaseline_server/static/loader.js |
index 645724c194a5d649b3214d5c12fe3ac0fcc157cb..d2c7288a2fdb3601707ccb441cb35df33470e96f 100644 |
--- a/gm/rebaseline_server/static/loader.js |
+++ b/gm/rebaseline_server/static/loader.js |
@@ -89,6 +89,12 @@ Loader.controller( |
$timeout( |
function(){location.reload();}, |
timeToReload - timeNow); |
+ } else if (dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] != |
+ constants.REBASELINE_SERVER_SCHEMA_VERSION_NUMBER) { |
+ $scope.loadingMessage = "ERROR: Got JSON file with schema version " |
+ + dataHeader[constants.KEY__HEADER__SCHEMA_VERSION] |
+ + " but expected schema version " |
+ + constants.REBASELINE_SERVER_SCHEMA_VERSION_NUMBER; |
} else { |
$scope.loadingMessage = "Processing data, please wait..."; |