Printing errorMessage in the getWeather function