Fix a typo and convert throwing a string to throwing an error.
Fix a typo and convert throwing a string to throwing an error.

Kitware/geojs,OpenGeoscience/geojs,Kitware/geojs,OpenGeoscience/geojs,Kitware/geojs,OpenGeoscience/geojs