fix: update error message for invalid latitude and longitude in fetchWeatherDetails method

This commit is contained in:
faris Aljohari
2025-06-04 01:09:49 -06:00
parent cd3e9016f2
commit ea021ad228

View File

@ -40,7 +40,7 @@ export class WeatherService {
console.log(`Error fetching weather data: ${error}`);
throw new HttpException(
`Wrong latitude or longitude provided`,
`Api can't handle these lat and lon values`,
error.response?.status || HttpStatus.INTERNAL_SERVER_ERROR,
);
}