Merge pull request #46 from C0rn3j/patch-1

Reword the invalid API key error
master
Loïc Blot 2017-09-19 16:05:28 +02:00 committed by GitHub
commit 0ccc0f3cec
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;
}
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;
}
else {
@ -234,7 +234,7 @@ app.controller('WeatherController', ['$scope', '$interval', '$timeout', '$compil
},
function (r) {
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) {
$scope.addCityError = "No city with this name found.";