Improving returned errors in local syncing.