data: Verify that filter date ranges are in the proper order

This commit is contained in:
Paul Beckingham 2016-07-09 08:06:31 -04:00
parent f66127f473
commit 34e43cdb55

View file

@ -210,6 +210,9 @@ Interval getFilter (const CLI& cli)
throw std::string ("Unrecognized date range: '") + join (" ", args) + "'.";
}
if (filter.range.start > filter.range.end)
throw std::string ("The end of a date range must be after the start.");
/*
std::cout << "# getFilter:\n"
<< "# " << filter.dump () << "\n";