Only Error instances in JavaScript provide a stack - this is why there is no stack available, because a simple string is thrown. This PR addresses this issue by throwing an actual Error instance and providing a more detail error message, such as: Cannot convert EUR to USD: exchange rate for USD is missing.
Related to #8 and #13
Only
Error
instances in JavaScript provide a stack - this is why there is no stack available, because a simple string is thrown. This PR addresses this issue by throwing an actualError
instance and providing a more detail error message, such as:Cannot convert EUR to USD: exchange rate for USD is missing
.