openexchangerates / money.js

money.js is a tiny (1kb) javascript currency conversion library, for web & nodeJS
http://openexchangerates.github.io/money.js
MIT License
1.46k stars 127 forks source link

Better error ? #13

Open PierrickP opened 10 years ago

PierrickP commented 10 years ago

When we have something wrong, money.js just throw fx error (https://github.com/josscrowcroft/money.js/blob/master/money.js#L78)

It would be great if we can have more details about the error or better again, the stack !

ragulka commented 8 years ago

I second. It seems the error is thrown whenever a currency is missing from the rates. So it would be useful if the error said which currency was missing.