If we get CSRError from FedEx, The gem wasn't showing any error, it was just showing Fedex::RateError, We should show a proper error message to the user. so he can have an idea what's wrong with the request.
I added one elsif for showing an error message which will help the user to get an exact error from FedEx.
Fedex::RateError
, We should show a proper error message to the user. so he can have an idea what's wrong with the request.I added one elsif for showing an error message which will help the user to get an exact error from FedEx.