Typo fix on exception

Changing `throw err` to `throw error` based on passed in parameter name.
Merge pull request #17 from dasmall/master

Typo fix on exception [ci skip]