Throw `Error`s instead of objects and strings

Fixes #.