error handler
updated on error callback
Merge pull request #22 from calvinmetcalf/ns

error handler
Pass entire error object instead of just message
Allow for more robust method chaining. Fixes #23