Fix error message

Bugfix: Error handling function argument.
Now takes only the error argument, as intended. Emit the error
instead of throwing on `err.message` access.
Fixes #93