making error/success handlers promise compatible
Add missing wrapError and simplify a bit.
Merge pull request #1 from braddunbar/sync

Add missing wrapError and simplify a bit.
One simplification step further...
Merge pull request #2 from caseywebdev/sync-revert2

One simplification step further...
adding tests for error event on all sync methods
Semicolon.
Merge pull request #3 from braddunbar/patch-1

Semicolon.
Merge pull request #2221 from tgriesser/sync-revert2

Making error/success handlers promise compatible