Reword the invalid API key error

So that it is clear where exactly this needs to be resolved.
master
Martin 2017-09-18 20:35:59 +02:00 committed by GitHub
parent 3cd7e838b4
commit e0ed4928ae
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
$scope.cityLoadNeedsAPIKey = false; $scope.cityLoadNeedsAPIKey = false;
} }
else if (r.status == 401) { else if (r.status == 401) {
$scope.cityLoadError = "Your OpenWeatherMap API key is invalid. Contact your administrator to configure a valid API key in administration settings"; $scope.cityLoadError = "Your OpenWeatherMap API key is invalid. Contact your administrator to configure a valid API key in Additional Settings of the Administration";
$scope.cityLoadNeedsAPIKey = true; $scope.cityLoadNeedsAPIKey = true;
} }
else { else {
@ -234,7 +234,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
}, },
function (r) { function (r) {
if (r.status == 401) { if (r.status == 401) {
$scope.addCityError = "Your OpenWeatherMap API key is invalid. Contact your administrator to configure a valid API key in administration settings"; $scope.addCityError = "Your OpenWeatherMap API key is invalid. Contact your administrator to configure a valid API key in Additional Settings of the Administration";
} }
else if (r.status == 404) { else if (r.status == 404) {
$scope.addCityError = "No city with this name found."; $scope.addCityError = "No city with this name found.";