Add missing wrapError and simplify a bit.
Merge pull request #1 from braddunbar/sync

Add missing wrapError and simplify a bit.