Skip to content
Snippets Groups Projects
Commit c8d5ebd6 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Added parameter type in error message

parent a52d2aa1
Branches
Tags
No related merge requests found
...@@ -94,7 +94,7 @@ public class WeatherUtil { ...@@ -94,7 +94,7 @@ public class WeatherUtil {
if(possibleDuplicate != null) if(possibleDuplicate != null)
{ {
throw new WeatherObservationListException( throw new WeatherObservationListException(
"Found duplicate weatherObservations for parameter " + "Found duplicate weatherObservations for parameter " +
observation.getElementMeasurementTypeId() + " at time " + observation.getElementMeasurementTypeId() + " at time " +
observation.getTimeMeasured() observation.getTimeMeasured()
); );
...@@ -114,6 +114,7 @@ public class WeatherUtil { ...@@ -114,6 +114,7 @@ public class WeatherUtil {
{ {
throw new WeatherObservationListException( throw new WeatherObservationListException(
"Too few observations to aggregate for parameter " + "Too few observations to aggregate for parameter " +
templateObservation.getElementMeasurementTypeId() +
" at date " + aDay +". Found " + hourValuesForADay.size() + " at date " + aDay +". Found " + hourValuesForADay.size() +
", expected minimum " + minimumObservationsPerDay ", expected minimum " + minimumObservationsPerDay
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment