Better error handling for bydate view.