asascience / ott-coops

Project Tracking for OTT Co-Ops
1 stars 0 forks source link

Create More Detailed Error Messages for Validation Tool #507

Closed jamesdoyle21 closed 2 years ago

jamesdoyle21 commented 2 years ago

Jeff brought this up today. Whent he user selects a date range in which the comparison model has out of date data, the validation tool just spits a generic error message. It would be helpful if the error message told us what the error is. In this case, OceansMap knows the data is out of date and when the closest data is as it says in the legend. Can we create a similar error message for the validation tool? Something like, "Error: Station or Comparison Model ____ has no data for the selected time range. The data is valid at date __ and time ____. Please select a new date range or Model/Station"

image

ndellicarpini commented 2 years ago

I don't know if it can be done bc I haven't looked at the returns from the validation tool yet, but I'll try and match the error system in the observation drawer (out of date | invalid location | generic error)

jamesdoyle21 commented 2 years ago

@ndellicarpini what are the options now for error messages?

ndellicarpini commented 2 years ago

There are now these warnings (warnings do not let you retry)

If the error is not one of the above, it defaults to "An error occured" with a retry button.