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

A wee bit more detailed error message when not being able to calculate

sunrise
parent e963a947
Branches
Tags
No related merge requests found
.gitignore 100644 → 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
pom.xml 100644 → 100755
File mode changed from 100644 to 100755
......@@ -312,7 +312,7 @@ public class BremiaLactucaeModel extends I18nImpl implements Model {
Date sunriseToday = this.getSunrise(currentDate);
if(sunriseToday == null)
{
throw new ModelExcecutionException("Not able to determine sunrise today. Too early?");
throw new ModelExcecutionException("Not able to determine sunrise today (" + currentDate + "). Too early?");
}
Date endOfDataToday = (thisDayInYear < lastDayWithWeatherData) ? justBeforeMidnight
: getDateWithCurrentTime(currentDate);
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment