pass error

@nicolashery @jh-bate this passes the error from the sync task back to the client.