mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 18:05:48 +00:00
fix: update error message for invalid latitude and longitude in fetchWeatherDetails method
This commit is contained in:
@ -40,7 +40,7 @@ export class WeatherService {
|
|||||||
console.log(`Error fetching weather data: ${error}`);
|
console.log(`Error fetching weather data: ${error}`);
|
||||||
|
|
||||||
throw new HttpException(
|
throw new HttpException(
|
||||||
`Wrong latitude or longitude provided`,
|
`Api can't handle these lat and lon values`,
|
||||||
error.response?.status || HttpStatus.INTERNAL_SERVER_ERROR,
|
error.response?.status || HttpStatus.INTERNAL_SERVER_ERROR,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user