Merge "COnvert sync error to int"