ash-jc-allen / laravel-exchange-rates

A Laravel wrapper package for interacting with the exchangeratesapi.io API.
MIT License
449 stars 49 forks source link

Changed InvalidCurrencyException messages #53

Closed ghost closed 3 years ago

ghost commented 3 years ago

Changed the message when throwing InvalidCurrencyException from the Validation class' validateCurrencyCode and validateCurrencyCodes methods to better reflect the reason an exception was thrown. The current message may imply that country codes (ex. US, UK) were meant to be supplied, instead of currency codes (USD, GBP)