CodeSync: catch error after sync