Pass syncFiles error to callback