Apply same error logic for DM replication as for FTS
fix log