sync: added err case