CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

catches api error and adds flash warning to affected pages #221

Closed jduss4 closed 3 years ago

jduss4 commented 3 years ago

possibly addresses https://github.com/CDRH/orchid/issues/198

If the API sends an error response (like for example, if it is down entirely), this will create a friendlier message to the user than the entire page crashing and burning. We may want to consider, possibly as future issues because I really think this is in general a big improvement, trying to pass through different messages depending on whether there was just a bad query vs that the API is down entirely.