podaac / data-subscriber

Subscribe and bulk download collections of data at PO.DAAC
Apache License 2.0
83 stars 29 forks source link

Improve error message when time bounds are out of order #145

Open celiaou-podaac opened 1 year ago

celiaou-podaac commented 1 year ago

Currently, if the provided -sd is a later time than -ed, the user will see a message ending with: urllib.error.HTTPError: HTTP Error 400: Bad Request

Suggestion to improve the error message for this case to use something like: Start date and end date are out of order. End date needs to be a later time than start date.