Skip to content

Commit fd0823b

Browse files
fx
1 parent f20db54 commit fd0823b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/edu/ie3/datamodel/io/source/couchbase/CouchbaseWeatherSource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ public Map<Point, IndividualTimeSeries<WeatherValue>> getWeather(
128128
try {
129129
jsonWeatherInputs = queryResult.rowsAsObject();
130130
} catch (DecodingFailureException ex) {
131-
logger.error("Querying weather inputs failed!", ex);
131+
logger.error("Querying weather inputs failed for coordinate {}", coordinate, ex);
132+
throw new NoDataException(
133+
"Failed to decode weather data for coordinate " + coordinate, ex);
132134
}
133135
if (jsonWeatherInputs != null && !jsonWeatherInputs.isEmpty()) {
134136
Set<TimeBasedValue<WeatherValue>> weatherInputs =

0 commit comments

Comments
 (0)