Pass syncFiles error to callback

Uploads were failing without errors.