Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you don't set the
:default_cldr_backend
for:ex_money
(I had set for:ex_cldr
), the retriever just silently fails start up, and subsequent exchange rates requests fails. Took me a sec to find out it was because the retriever just silently fails.This change will surfaces any startup error by naively raising the reason, but I think there may be a better way to handle it or format the error. Not really a fan of this solution. I haven't added a test case for it as I couldn't find any tests for the exchange rates supervisor), and again, there's probably a better way to handle the upstart error inside the supervision tree.
The simplest way to test it is to change the test config to:
The other thing is to figure out why Money wouldn't fall back to the
:ex_cldr
:default_cldr_backend
config for the supervisor.