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

Small improvement of error message

parent a354b35d
Branches
Tags
No related merge requests found
...@@ -1626,7 +1626,7 @@ public class RoughageNutritionModelImpl implements CostFunction{ ...@@ -1626,7 +1626,7 @@ public class RoughageNutritionModelImpl implements CostFunction{
dagensDagIAaret = cal.get(Calendar.DAY_OF_YEAR); dagensDagIAaret = cal.get(Calendar.DAY_OF_YEAR);
cal.setTime(forrigeDato); cal.setTime(forrigeDato);
if(dagensDagIAaret - cal.get(Calendar.DAY_OF_YEAR) != 1) if(dagensDagIAaret - cal.get(Calendar.DAY_OF_YEAR) != 1)
throw new ModelExcecutionException("Feil ved klimadata: Temperaturparameteren har hull i datasettet"); throw new ModelExcecutionException("Feil ved klimadata: Temperaturparameteren har hull i datasettet rundt " + dagensDato);
} }
// Datoer må stemme overens. // Datoer må stemme overens.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment