[minor fix] ensure errors are of type Error
Merge pull request #16 from jcrugzz/throw-error

[minor fix] ensure errors are of type Error