From fce4b711c87ea6a1f204ae83c47deedee95fc3ac Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Fri, 23 Nov 2018 10:06:46 +0100
Subject: [PATCH] Improved error message

---
 nb-configuration.xml                              | 1 +
 src/main/java/no/nibio/vips/util/WeatherUtil.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/nb-configuration.xml b/nb-configuration.xml
index 7103095..d92c62a 100755
--- a/nb-configuration.xml
+++ b/nb-configuration.xml
@@ -14,5 +14,6 @@ That way multiple projects can share the same settings (useful for formatting ru
 Any value defined here will override the pom.xml file value but is only applicable to the current project.
 -->
         <netbeans.hint.license>nibio_open_source_license.ftl</netbeans.hint.license>
+        <netbeans.hint.jdkPlatform>JDK_1.8_SUN</netbeans.hint.jdkPlatform>
     </properties>
 </project-shared-configuration>
diff --git a/src/main/java/no/nibio/vips/util/WeatherUtil.java b/src/main/java/no/nibio/vips/util/WeatherUtil.java
index f3f5de3..77dd981 100755
--- a/src/main/java/no/nibio/vips/util/WeatherUtil.java
+++ b/src/main/java/no/nibio/vips/util/WeatherUtil.java
@@ -821,7 +821,7 @@ public class WeatherUtil {
             //System.out.println("Missing values=" + missingValues);
             if(missingValues > maximumMissingValues)
             {
-                throw new WeatherObservationListException("More than three missing values for "
+                throw new WeatherObservationListException("More than " + maximumMissingValues + " missing values for "
                         + "parameter " + obsList.get(0).getElementMeasurementTypeId() 
                         + " between " + obsList.get(i-1).getTimeMeasured() + " and "
                         + obsList.get(i).getTimeMeasured() + ". Can't fix this!");
-- 
GitLab