Reversible migration and logging error messages