gentooboontoo / js-quantities

JavaScript library for quantity calculation and unit conversion
http://gentooboontoo.github.io/js-quantities/
MIT License
396 stars 102 forks source link

Report incompatible units in error message #80

Closed Linearity closed 7 years ago

Linearity commented 7 years ago

I changed the "Incompatible units" QtyError to report the names of the incompatible units, per #79.

This is a simple change to the error message. I changed the interface for throwIncompatibleUnits to accept each unit. I updated all calls to throwIncompatibleUnits as well as the expected error messages in the testing spec.

gentooboontoo commented 7 years ago

Merged, thank you (I have excluded the commit with rebuilt library).